Public Member Functions |
| TCPSocket () throw (SocketException) |
| TCPSocket (const string &foreignAddress, unsigned short foreignPort) throw (SocketException) |
void | connect (const string &foreignAddress, unsigned short foreignPort) throw (SocketException) |
void | send (const void *buffer, int bufferLen) throw (SocketException) |
int | recv (void *buffer, int bufferLen) throw (SocketException) |
string | getForeignAddress () throw (SocketException) |
unsigned short | getForeignPort () throw (SocketException) |
| ~Socket () |
string | getLocalAddress () throw (SocketException) |
unsigned short | getLocalPort () throw (SocketException) |
void | setLocalPort (unsigned short localPort) throw (SocketException) |
void | setLocalAddressAndPort (const string &localAddress, unsigned short localPort=0) throw (SocketException) |
TCP socket for communication with other TCP sockets