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

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

Definition at line 245 of file PracticalSocket.cpp.

00246                            : CommunicatingSocket(SOCK_STREAM, IPPROTO_TCP) {
00247   connect(foreignAddress, foreignPort);
00248 }


Generated on Thu Jan 13 09:13:09 2011 for ImpalaSrc by  doxygen 1.5.1