n2nc::net::IP4Address Class Reference

Provides the IP version 4 address abstraction. More...

#include <ip4address.h>

Inheritance diagram for n2nc::net::IP4Address:

Inheritance graph
[legend]
Collaboration diagram for n2nc::net::IP4Address:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 IP4Address (std::string &addr)
 IP4Address (struct in_addr *addr)
virtual std::string toString () const
virtual void getRawAddress (void **addr, size_t *len)

Friends

class Resolver


Detailed Description

Provides the IP version 4 address abstraction.

Author:
fabsoft <fabsoft@gmail.com>

Definition at line 14 of file ip4address.h.


Member Function Documentation

std::string n2nc::net::IP4Address::toString (  )  const [virtual]

Returns:
the address in string format

Implements n2nc::net::Address.

Definition at line 36 of file ip4address.cpp.

void n2nc::net::IP4Address::getRawAddress ( void **  addr,
size_t *  len 
) [virtual]

Returns:
a pointer to the internal sockaddr* and sets its lenght

Implements n2nc::net::Address.

Definition at line 48 of file ip4address.cpp.


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

Generated on Mon Oct 6 19:32:40 2008 for n2nc by  doxygen 1.5.5