Conexus::Address Class Reference
[ConexusConexusConexus]

#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 Types

typedef ConexusPointer< Addresspointer

Public Member Functions

 Address (const struct sockaddr_storage &addr)
virtual struct sockaddr * sockaddr_ptr () const
 
Returns:
the raw sockaddr structure of this address type

virtual struct sockaddr_storage * sockaddr_storage_ptr () const
virtual socklen_t sockaddr_size () const
 
Returns:
the length of the raw sockaddr structure in bytes

virtual bool is_broadcast () const
 
Returns:
true if this is considered a broadcast address

 Address (const struct sockaddr_storage &addr)
virtual struct sockaddr * sockaddr_ptr ()
 
Returns:
the raw sockaddr structure of this address type

virtual socklen_t sockaddr_size () const
 
Returns:
the length of the raw sockaddr structure in bytes

virtual bool is_broadcast () const
 
Returns:
true if this is considered a broadcast address

virtual const std::string & object_type ()
 Address (const struct sockaddr_storage &addr)
virtual struct sockaddr * sockaddr_ptr ()
 
Returns:
the raw sockaddr structure of this address type

virtual socklen_t sockaddr_size () const
 
Returns:
the length of the raw sockaddr structure in bytes

virtual bool is_broadcast () const
 
Returns:
true if this is considered a broadcast address

virtual const std::string & object_type ()

Protected Attributes

union {
   sockaddr_storage   storage
   sockaddr   sockaddr
   sockaddr_in   ipv4
   sockaddr_in6   ipv6
   sockaddr_ll   ll
m_sockaddr
sockaddr_storage m_sockaddr_storage
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, Conexus::IPv4::Address, and Conexus::IPv4::Address.

virtual 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, Conexus::IPv4::Address, and Conexus::IPv4::Address.

virtual 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, Conexus::IPv4::Address, and Conexus::IPv4::Address.


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 19:54:56 2007 by  doxygen 1.5.1