Conexus::Address Class Reference
[Conexus]

#include <conexus/address.h>

Inheritance diagram for Conexus::Address:

Inheritance graph
[legend]
List of all members.

Detailed Description

This top level class provides a pure-virtual inheritance interface for children to inherit from.

In concept, this class is much like the BSD raw sockaddr structure.

Author:
Rick L Vinyard Jr


Public Member Functions

 Address (const struct sockaddr_storage &addr)
virtual struct sockaddr * sockaddr_ptr ()
virtual socklen_t sockaddr_size () const
virtual bool is_broadcast () const
virtual const std::string & object_type ()

Protected Attributes

sockaddr_storage m_sockaddr_storage


Member Function Documentation

bool Conexus::Address::is_broadcast  )  const [virtual]
 

Returns:
true if this is considered a broadcast address
Is relative to a specific child protocol implementation and returns false unless child provides a specific implementation.

Reimplemented in Conexus::IPv4::Address.

struct sockaddr * Conexus::Address::sockaddr_ptr  )  [virtual]
 

Returns:
the raw sockaddr structure of this address type

socklen_t Conexus::Address::sockaddr_size  )  const [virtual]
 

Returns:
the length of the raw sockaddr structure in bytes

Reimplemented in Conexus::IPv4::Address, and Conexus::IPv6::Address.


The documentation for this class was generated from the following files:
Generated on Sat Aug 26 17:34:54 2006 by  doxygen 1.4.6