neo::network::AddressIPv4 Class Reference

#include <network/ipv4.h>

Inheritance diagram for neo::network::AddressIPv4:

Inheritance graph
[legend]
Collaboration diagram for neo::network::AddressIPv4:

Collaboration graph
[legend]
List of all members.

Detailed Description

IPv4 address class encapsulating methods for address resolving and reverse lookup.
Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 AddressIPv4 ()
 Construct default address (any).
 AddressIPv4 (const std::string &host, unsigned int port=0)
 Construct from host name or dotted-format string.
void setIP (unsigned int ip)
 Set IP.
unsigned int getIP () const
 Get IP.

Static Public Member Functions

static core::Array< unsigned
int > 
getLocalIPs ()
 Get local IP.

Protected Member Functions

void resolv (const std::string &host)
 Resolve hostname.


Constructor & Destructor Documentation

neo::network::AddressIPv4::AddressIPv4 ( const std::string &  host,
unsigned int  port = 0 
)

Parameters:
host Host name
port Port


Member Function Documentation

void neo::network::AddressIPv4::setIP ( unsigned int  ip  ) 

Set raw IP address

Parameters:
ip IP address (host order)

unsigned int neo::network::AddressIPv4::getIP (  )  const

Returns:
IP address (host order)

static core::Array< unsigned int > neo::network::AddressIPv4::getLocalIPs (  )  [static]

Returns:
Array of local IPs (host order)

void neo::network::AddressIPv4::resolv ( const std::string &  host  )  [protected]

Parameters:
host Host name


The documentation for this class was generated from the following file:
Generated on Sat Feb 17 20:51:06 2007 for NeoEngine 2 - Evolution by  doxygen 1.5.1