21#ifndef _NET_ADDRESS_HH
22#define _NET_ADDRESS_HH
32#ifndef _USAGE_ENVIRONMENT_HH
51 u_int8_t
const*
data() const
62struct sockaddr_storage const&
nullAddress(
int addressFamily = AF_INET);
69Boolean operator==(
struct sockaddr_storage
const& left,
struct sockaddr_storage
const& right);
126 void*
Add(
struct sockaddr_storage
const& address1,
127 struct sockaddr_storage
const& address2,
131 void*
Add(
struct sockaddr_storage
const& address1,
138 struct sockaddr_storage
const& address2,
145 void*
Lookup(
struct sockaddr_storage
const& address1,
146 struct sockaddr_storage
const& address2,
149 void*
Lookup(
struct sockaddr_storage
const& address1,
Boolean addressIsNull(sockaddr_storage const &address)
SOCKLEN_T addressSize(sockaddr_storage const &address)
portNumBits portNum(struct sockaddr_storage const &address)
UsageEnvironment & operator<<(UsageEnvironment &s, const Port &p)
void copyAddress(struct sockaddr_storage &to, NetAddress const *from)
u_int32_t ipv4AddressBits
Boolean IsMulticastAddress(struct sockaddr_storage const &address)
void setPortNum(struct sockaddr_storage &address, portNumBits portNum)
struct sockaddr_storage const & nullAddress(int addressFamily=AF_INET)
u_int8_t ipv6AddressBits[16]
Boolean operator==(struct sockaddr_storage const &left, struct sockaddr_storage const &right)
HashTable::Iterator * fIter
Iterator(AddressPortLookupTable &table)
void * Add(struct sockaddr_storage const &address1, Port port, void *value)
void * Lookup(struct sockaddr_storage const &address1, Port port)
void * Lookup(struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port)
Boolean Remove(struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port)
virtual ~AddressPortLookupTable()
void * Add(struct sockaddr_storage const &address1, struct sockaddr_storage const &address2, Port port, void *value)
Boolean Remove(struct sockaddr_storage const &address1, Port port)
void init(ipv6AddressBits const &addr)
AddressString(struct sockaddr_storage const &addr)
AddressString(ipv6AddressBits const &addr)
AddressString(ipv4AddressBits const &addr)
AddressString(struct in6_addr const &addr)
void init(ipv4AddressBits const &addr)
AddressString(struct sockaddr_in const &addr)
AddressString(struct sockaddr_in6 const &addr)
AddressString(struct in_addr const &addr)
Iterator(NetAddressList const &addressList)
NetAddress const * nextAddress()
NetAddressList const & fAddressList
virtual ~NetAddressList()
NetAddressList(NetAddressList const &orig)
NetAddress const * firstAddress() const
void assign(unsigned numAddresses, NetAddress **addressArray)
unsigned numAddresses() const
NetAddress ** fAddressArray
NetAddressList(char const *hostname, int addressFamily=AF_UNSPEC)
NetAddressList & operator=(NetAddressList const &rightSide)
NetAddress(unsigned length=4)
NetAddress(u_int8_t const *data, unsigned length=4)
u_int8_t const * data() const
void assign(u_int8_t const *data, unsigned length)
NetAddress & operator=(NetAddress const &rightSide)
NetAddress(NetAddress const &orig)