n2nc::net::Address Class Reference

Provides the abstraction to implements various address family addresses. More...

#include <address.h>

Inheritance diagram for n2nc::net::Address:

Inheritance graph
[legend]

List of all members.

Public Member Functions

int getAddressFamily () const
virtual std::string toString () const =0
virtual void getRawAddress (void **addr, size_t *len)=0

Static Public Member Functions

static AddressnewAddress (std::string &addr)
 (Factory method)

Protected Attributes

int m_af


Detailed Description

Provides the abstraction to implements various address family addresses.

Author:
fabsoft <fabsoft@gmail.com>

Definition at line 18 of file address.h.


Member Function Documentation

Address * n2nc::net::Address::newAddress ( std::string &  addr  )  [static]

(Factory method)

Returns:
A new Address by specified addr in string format

Definition at line 20 of file address.cpp.

References n2nc::net::Resolver::getAddressByFQDN().

Here is the call graph for this function:

int n2nc::net::Address::getAddressFamily (  )  const

Returns:
the address family in OS defined format

Definition at line 16 of file address.cpp.

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

Returns:
the address in string format

Implemented in n2nc::net::IP4Address, and n2nc::net::IP6Address.

Referenced by n2nc::net::Resolver::getAddressByFQDN().

Here is the caller graph for this function:

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

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

Implemented in n2nc::net::IP4Address, and n2nc::net::IP6Address.


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

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