TcpIpConnection
TcpIpConnection

A Connection_Impl derived class that represents a tcp/ip connection.

Functions
description
virtual std::string description()

Gets a description of the connection.

Returns

A description of the connection, in the form "TCP/IP, serverAddress:serverPort".

TcpIpConnection
TcpIpConnection(
const std::string &serverAddress,
uint16 serverPort
)

Creates a TcpIpConnection object.

Parameters
serverAddress
const std::string&

The server address (domain name or ip address) to connect to.

serverPort
uint16

The server port to connect to.

establishConnection
virtual void establishConnection()

Initializes and opens the current connection.

Exceptions
Variables
m_path

The server address (url or ip address).

m_serverPort
uint16 m_serverPort

The server port for the connection.