class CAVERNplus_tcpReflectorClient_c Client specifically for use with CAVERNplus_tcpReflector_c
|
| CAVERNplus_tcpReflectorClient_c (CAVERNplus_tcpClient_c *) Use this constructor if you have a pre-opened socket. |
|
| close () Close the current client connection. |
| | connectToServer (char *ip, int port=7000) Connect to a server |
| | isReady () Determines if a socket is ready to write or read or both |
| | isReadyToRead () Determines if a socket has data available to read |
| | isReadyToWrite () Determines if a socket is ready to write |
| | read (char** ret, int* nbytes, int blockingType) Read data from a reflector (if available) |
| | setTimeOut (int timeout=CAVERNplus_tcpReflectorClient_c::NO_TIME_OUT) Set timeout for read and writes |
|
| showStats () Show statistics of a connection. |
|
| showStatus (int status, int nbytes) Show status of connection in English. |
| | write (char *outgoingData, int* nbytes) Write data to the reflector |
|
| Accessor functions
| ||||||||||||||||||
| |
|
Client specifically for use with CAVERNplus_tcpReflector_c. Use this only to communicate with the reflector. Do not use the CAVERNplus_tcpClient_c class.
int write(char *outgoingData, int* nbytes)
nbytes - set to size of the buffer refered to by outgoingData
int isReadyToRead()
int isReadyToWrite()
int isReady()
unsigned int getRemoteIP()
void getRemoteIP(char* name)
int connectToServer(char *ip, int port=7000)
port - Port to connect to.
void setTimeOut(int timeout=CAVERNplus_tcpReflectorClient_c::NO_TIME_OUT)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de