playerclient.h
209 void SetRequestTimeout(uint32_t seconds) { playerc_client_set_request_timeout(this->mClient,seconds); }
const std::string PLAYER_HOSTNAME
The default hostname for PlayerClient.
Definition: utility.h:63
Definition: playerclient.h:83
int retry_limit
How many times we'll try to reconnect after a socket error.
Definition: playerc.h:525
int connected
Whether or not we're currently connected.
Definition: playerc.h:520
void SetRequestTimeout(uint32_t seconds)
Set the timeout for client requests.
Definition: playerclient.h:209
Definition: playerclient.h:313
T limit(T a, T min, T max)
Limit a value to the range of min, max.
Definition: utility.h:114
mutex_t mMutex
A mutex for handling synchronization.
Definition: playerclient.h:181
The PlayerClient is used for communicating with the player server.
Definition: playerclient.h:120
double GetRetryTime()
Get connection retry time, which is number of seconds to wait between reconnection attempts...
Definition: playerclient.h:227
const int PLAYER_PORTNUM
The default port number for PlayerClient.
Definition: utility.h:61
Definition: playerclient.h:85
PLAYERC_EXPORT void playerc_client_set_request_timeout(playerc_client_t *client, uint32_t seconds)
Set the timeout for client requests.
Definition: playerclient.h:95
void SetRetryLimit(int limit)
Set connection retry limit, which is the number of times that we'll try to reconnect to the server af...
Definition: playerclient.h:215
void SetRetryTime(double time)
Set connection retry time, which is number of seconds to wait between reconnection attempts...
Definition: playerclient.h:223
std::string GetHostname() const
Returns the hostname.
Definition: playerclient.h:294
PLAYERC_EXPORT void playerc_client_set_retry_limit(playerc_client_t *client, int limit)
Set the connection retry limit.
double retry_time
How long to sleep, in seconds, to sleep between reconnect attempts.
Definition: playerc.h:529
int GetRetryLimit()
Get connection retry limit, which is the number of times that we'll try to reconnect to the server af...
Definition: playerclient.h:219
uint32_t GetPort() const
Returns the port.
Definition: playerclient.h:297
Definition: playerclient.h:91
Definition: playerclient.h:104
PLAYERC_EXPORT void playerc_client_set_retry_time(playerc_client_t *client, double time)
Set the connection retry sleep time.
bool Connected()
Query connection to Player server.
Definition: playerclient.h:178