Pyro higlevel network API
|
Classes | |
class | Private |
Public Member Functions | |
Socket (Host &cHost, bool bDatagram=false) | |
Default constructor. More... | |
virtual | ~Socket (void) |
Destructor. More... | |
virtual void | SetHost (Host &cHost) |
virtual Host | GetHost (void) |
virtual status_t | Connect (void) |
virtual bool | IsConnected (void) |
virtual status_t | Disconnect (void) |
virtual ssize_t | Send (const void *pBuffer, ssize_t nSize) |
virtual ssize_t | Recieve (void *pBuffer, ssize_t nSize) |
virtual ssize_t | ReadLine (uint8 *pnBuffer, ssize_t nMax, bigtime_t nTimeout=SOCKET_DEFAULT_TIMEOUT) |
virtual status_t | WaitFor (char *pzString, uint8 *pnBuffer, ssize_t nMax, bigtime_t nTimeout=SOCKET_DEFAULT_TIMEOUT) |
virtual status_t | SetBlocking (bool bBlocking=true) |
virtual bool | IsBlocking (void) |
Public Attributes | |
bool | m_bTimeout |
Socket::Socket | ( | Host & | cHost, |
bool | bDatagram = false |
||
) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
pnBuffer | A buffer to hold the data being recieved. |
nMax | The maximum amount of data to recieve from the server. nMax must not be larger than the size of pnBuffer. |
nTimeout | Time to wait before the operation is abandoned. Default is 60 seconds. |
|
virtual |
pBuffer | A buffer to hold the data being recieved. |
nSize | The number of bytes to be received. |
|
virtual |
pBuffer | A buffer containing the data to be sent. |
nSize | The number of bytes to be sent. |
|
virtual |
bBlocking | false Make the Socket non-blocking, true makes the Socket blocking. Default is true. |
|
virtual |
|
virtual |
pzString | The sequence to wait for the server to send. |
pnBuffer | A buffer to hold the data being recieved. |
nMax | The maximum amount of data to recieve from the server. nMax must not be larger than the size of pnBuffer. |
nTimeout | Time to wait before the operation is abandoned. Default is 60 seconds. |
bool net::Socket::m_bTimeout |