#include <XPStream.h>


Public Member Functions | |
| XPStream () | |
| virtual | ~XPStream () |
| int | Create () |
| int | Close () |
| XPStream * | Accept (void) |
| int | Send (const char *data, const int len) |
| int | Recv (char *const data, const int maxlen) |
| int | GetMaxPacketSize (void) |
| int Create | ( | void | ) | [virtual] |
| int Close | ( | void | ) |
| XPStream * Accept | ( | void | ) |
Accepts any pending connections for this stream. This should be used with the Listen() member function defined in the XPSocket base class
Reimplemented from XPSocket.
| int Send | ( | const char * | data, | |
| const int | len | |||
| ) |
Sends a packet from the connected stream
| data | the pointer to the data to send | |
| len | the length of the data to send |
Reimplemented from XPSocket.
| int Recv | ( | char *const | data, | |
| const int | maxlen | |||
| ) |
Tries to recv a packet from the stream
| data | the pointer to the data buffer to receive the packet | |
| maxlen | the maximum length of the data buffer |
Reimplemented from XPSocket.
| int GetMaxPacketSize | ( | void | ) | [inline] |
Returns the maximum size for a packet
Reimplemented from XPSocket.
1.5.3