#include <address.h>
Public Types | |
typedef ConexusPointer< Address > | pointer |
Public Member Functions | |
Address () | |
Address (const struct sockaddr_storage &addr) | |
virtual | ~Address () |
virtual struct sockaddr * | sockaddr_ptr () const |
virtual struct sockaddr_storage * | sockaddr_storage_ptr () const |
virtual socklen_t | sockaddr_size () const |
virtual bool | is_broadcast () const |
Protected Attributes | |
union { | |
struct sockaddr_storage storage | |
struct sockaddr sockaddr | |
struct sockaddr_in ipv4 | |
struct sockaddr_in6 ipv6 | |
struct sockaddr_ll ll | |
} | m_sockaddr |
In concept, this class is much like the BSD raw sockaddr structure.
typedef ConexusPointer<Address> Conexus::Address::pointer |
Conexus::Address::Address | ( | ) |
Conexus::Address::Address | ( | const struct sockaddr_storage & | addr | ) |
Conexus::Address::~Address | ( | ) | [virtual] |
Reimplemented in Conexus::IPv4::Address, and Conexus::LL::Address.
bool Conexus::Address::is_broadcast | ( | ) | const [virtual] |
Reimplemented in Conexus::IPv4::Address, and Conexus::LL::Address.
struct sockaddr * Conexus::Address::sockaddr_ptr | ( | ) | const [read, virtual] |
References m_sockaddr, and sockaddr.
Referenced by Conexus::NSPR::addr_to_nspr().
socklen_t Conexus::Address::sockaddr_size | ( | ) | const [virtual] |
Reimplemented in Conexus::IPv4::Address, and Conexus::LL::Address.
struct sockaddr_storage * Conexus::Address::sockaddr_storage_ptr | ( | ) | const [read, virtual] |
struct sockaddr_in Conexus::Address::ipv4 [read] |
struct sockaddr_in6 Conexus::Address::ipv6 [read] |
struct sockaddr_ll Conexus::Address::ll [read] |
Referenced by Conexus::LL::Packet::set_interface().
union { ... } Conexus::Address::m_sockaddr [protected] |
Referenced by Conexus::LL::Address::Address(), Conexus::IPv4::Address::Address(), Address(), Conexus::LL::Address::family(), Conexus::LL::Address::hardware_address(), Conexus::LL::Address::hardware_address_length(), Conexus::LL::Address::hardware_type(), Conexus::LL::Address::interface_index(), Conexus::LL::Address::is_broadcast(), Conexus::IPv4::Address::operator struct sockaddr_in *(), Conexus::IPv4::Address::operator=(), Conexus::LL::Address::packet_type(), Conexus::LL::Address::protocol(), Conexus::IPv4::Address::set_host(), Conexus::IPv4::Address::set_host_prefix_length(), Conexus::IPv4::Address::set_host_subnet_mask(), Conexus::LL::Packet::set_interface(), Conexus::LL::Address::set_interface(), Conexus::IPv4::Address::set_port(), Conexus::LL::Address::set_protocol(), Conexus::IPv4::Address::sockaddr_in(), Conexus::IPv4::Address::sockaddr_in_ptr(), sockaddr_ptr(), and sockaddr_storage_ptr().
struct sockaddr Conexus::Address::sockaddr [read] |
Referenced by sockaddr_ptr().
struct sockaddr_storage Conexus::Address::storage [read] |
Referenced by Conexus::IPv4::Address::operator=().