TCPSocket Class Reference

#include <PracticalSocket.h>

Inheritance diagram for TCPSocket:

CommunicatingSocket CommunicatingSocket Socket Socket Socket Socket List of all members.

Detailed Description

TCP socket for communication with other TCP sockets


Public Member Functions

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

Private Member Functions

 TCPSocket (int newConnSD)
 TCPSocket (int newConnSD)

Friends

class TCPServerSocket


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]
 

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

TCPServerSocket [friend]
 


The documentation for this class was generated from the following files:
Generated on Sat Oct 17 14:12:35 2009 for CSL by  doxygen 1.4.5-20051010