NewNet::TcpClientSocket Class Reference

TCP/IP client socket. More...

#include <nntcpclientsocket.h>

Inheritance diagram for NewNet::TcpClientSocket:

NewNet::ClientSocket NewNet::Socket NewNet::Object List of all members.

Public Member Functions

 TcpClientSocket ()
 Create a new unconnected TCP/IP client socket.
void connect (const std::string &host, unsigned int port)
 Connect to a remote host.

Detailed Description

A client socket that provides a streaming internet (TCP/IP) socket type.

Definition at line 31 of file nntcpclientsocket.h.


Constructor & Destructor Documentation

NewNet::TcpClientSocket::TcpClientSocket (  )  [inline]

This creates a new, unconnected TCP/IP client socket. Call connect() to connect the client socket to a remote host.

Definition at line 37 of file nntcpclientsocket.h.


Member Function Documentation

void NewNet::TcpClientSocket::connect ( const std::string &  host,
unsigned int  port 
)

Creates a new descriptor and tries to connect it to the specified port on the specified host.

Definition at line 27 of file nntcpclientsocket.cpp.

References NewNet::ClientSocket::cannotConnectEvent, NewNet::ClientSocket::connectedEvent, NewNet::Socket::descriptor(), NewNet::Socket::ErrorCannotConnect, NewNet::Socket::ErrorCannotResolve, NewNet::Socket::setDescriptor(), NewNet::Socket::setSocketError(), NewNet::Socket::setSocketState(), NewNet::Socket::SocketConnected, NewNet::Socket::SocketConnecting, NewNet::Socket::socketState(), and NewNet::Socket::SocketUninitialized.


The documentation for this class was generated from the following files:
Generated on Sun Jan 7 14:00:02 2007 for NewNet by  doxygen 1.5.1