IpAddress Class Reference

#include <IpAddress.h>

List of all members.


Public Member Functions

 IpAddress ()
 Public constructor.
virtual ~IpAddress ()
 Virtal destructor.
common::ErrorCodeType ResolveHost (const std::string &rHost, int port)
 Resolves host address.
std::string GetAsString ()
 Gets as string.

Private Attributes

IPaddress m_IpAddress
 Private SDL_net data.

Friends

class TcpSocket
 Friend of TcpSocket.

Detailed Description

IpAddress class.
Full Description
This class provides IP address functionality.

Constructor & Destructor Documentation

IpAddress (  ) 

Public constructor.

Full Description
This method creates a new instance of the class.
Returns:
New instance of the class.

~IpAddress (  )  [virtual]

Virtal destructor.

Full Description
This method destroys an existing instance of the class.
Returns:
None.


Member Function Documentation

common::ErrorCodeType ResolveHost ( const std::string &  rHost,
int  port 
)

Resolves host address.

Full Description
This method resolves a host address.
Returns:
Success if successful.

Failure otherwise.

Parameters:
rHost  Name of host.
port  Port on host.

std::string GetAsString (  ) 

Gets as string.

Full Description
This method gets the adress as a string in dot notation.
Returns:
Address as a string.


Friends And Related Function Documentation

friend class TcpSocket [friend]

Friend of TcpSocket.


Member Data Documentation

IPaddress m_IpAddress [private]

Private SDL_net data.


The documentation for this class was generated from the following files: