TCPSocket Class Reference

#include <PracticalSocket.h>

Inheritance diagram for TCPSocket:

CommunicatingSocket Socket List of all members.

Public Member Functions

 TCPSocket () throw (SocketException)
 TCPSocket (const string &foreignAddress, unsigned short foreignPort) throw (SocketException)

Private Member Functions

 TCPSocket (int newConnSD)

Friends

class TCPServerSocket

Detailed Description

TCP socket for communication with other TCP sockets


Constructor & Destructor Documentation

TCPSocket::TCPSocket (  )  throw (SocketException)

Construct a TCP socket with no connection

Exceptions:
SocketException thrown if unable to create TCP socket

TCPSocket::TCPSocket ( const string &  foreignAddress,
unsigned short  foreignPort 
) throw (SocketException)

Construct a TCP socket with a connection to the given foreign address and port

Parameters:
foreignAddress foreign address (IP address or name)
foreignPort foreign port
Exceptions:
SocketException thrown if unable to create TCP socket

TCPSocket::TCPSocket ( int  newConnSD  )  [private]


Friends And Related Function Documentation

friend class TCPServerSocket [friend]


The documentation for this class was generated from the following files:
Generated on Sun Oct 7 23:43:50 2007 for anytun by  doxygen 1.5.1