Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Socket Class Reference

Base class representing basic communication endpoint. More...

#include <PracticalSocket.h>

Inheritance diagram for Socket:

Inheritance graph
[legend]
List of all members.

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)

Detailed Description

Base class representing basic communication endpoint.

Definition at line 59 of file PracticalSocket.h.


The documentation for this class was generated from the following files:
Generated on Fri Mar 19 10:32:31 2010 for ImpalaSrc by  doxygen 1.5.1