#include <PracticalSocket.h>
Inheritance diagram for Socket:

Public Member Functions | |
| ~Socket () | |
| Close and deallocate this socket. | |
| string | getLocalAddress () throw (SocketException) |
| Get the local address. | |
| unsigned short | getLocalPort () throw (SocketException) |
| Get the local port. | |
| void | setLocalPort (unsigned short localPort) throw (SocketException) |
| Set the local port to the specified port and the local address to any interface. | |
| void | setLocalAddressAndPort (const string &localAddress, unsigned short localPort=0) throw (SocketException) |
| Set the local port to the specified port and the local address to the specified address. | |
Static Public Member Functions | |
| static void | cleanUp () throw (SocketException) |
| If WinSock, unload the WinSock DLLs; otherwise do nothing. | |
| static unsigned short | resolveService (const string &service, const string &protocol="tcp") |
| Resolve the specified service for the specified protocol to the corresponding port number in host byte order. | |
Protected Member Functions | |
| Socket (int type, int protocol) throw (SocketException) | |
| Socket (int sockDesc) | |
Protected Attributes | |
| int | sockDesc |
Private Member Functions | |
| Socket (const Socket &sock) | |
| void | operator= (const Socket &sock) |
Definition at line 59 of file PracticalSocket.h.
1.5.1