#include <socket.hxx>
Inheritance diagram for xyzzy::TClientSocket:

Public Member Functions | |
| TClientSocket (u_int16_t port, string naddr="127.0.0.1", size_t bufSz=cDfltSz) throw (Exception) | |
| const char * | recv (ssize_t &nrd, bool nonBlocking=true) throw (Exception) |
| bool | send (const void *buf, size_t len=0, bool nonBlocking=true) throw (Exception) |
| virtual | ~TClientSocket () |
Private Member Functions | |
| void | init (size_t bufSz) throw (Exception) |
Private Attributes | |
| TRcConnection | m_conn |
| xyzzy::TClientSocket::TClientSocket | ( | u_int16_t | port, | |
| string | naddr = "127.0.0.1", |
|||
| size_t | bufSz = cDfltSz | |||
| ) | throw (Exception) [explicit] |
| xyzzy::TClientSocket::~TClientSocket | ( | ) | [virtual] |
| const char* xyzzy::TClientSocket::recv | ( | ssize_t & | nrd, | |
| bool | nonBlocking = true | |||
| ) | throw (Exception) [inline] |
Receive data from server.
| bool xyzzy::TClientSocket::send | ( | const void * | buf, | |
| size_t | len = 0, |
|||
| bool | nonBlocking = true | |||
| ) | throw (Exception) [inline] |
Send data to server. Use buf and len as buffer (to send) and length, respectively. If len==0, treat buf as null terminated string.
| void xyzzy::TClientSocket::init | ( | size_t | bufSz | ) | throw (Exception) [private] |
TRcConnection xyzzy::TClientSocket::m_conn [private] |
1.5.1