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

Public Member Functions | |
| Connection (int id, size_t sz=cDfltSz) | |
| 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 | ~Connection () |
Private Attributes | |
| const size_t | m_cBufSz |
| char * | mp_buf |
| int | m_id |
| xyzzy::TSocket::Connection::Connection | ( | int | id, | |
| size_t | sz = cDfltSz | |||
| ) | [explicit] |
| xyzzy::TSocket::Connection::~Connection | ( | ) | [virtual] |
| const char * xyzzy::TSocket::Connection::recv | ( | ssize_t & | nrd, | |
| bool | nonBlocking = true | |||
| ) | throw (Exception) |
Receive data from server.
| bool xyzzy::TSocket::Connection::send | ( | const void * | buf, | |
| size_t | len = 0, |
|||
| bool | nonBlocking = true | |||
| ) | throw (Exception) |
Send data to server. Use buf and len as buffer (to send) and length, respectively. If len==0, treat buf as null terminated string.
const size_t xyzzy::TSocket::Connection::m_cBufSz [private] |
char* xyzzy::TSocket::Connection::mp_buf [private] |
int xyzzy::TSocket::Connection::m_id [private] |
1.5.1