ndn::util::NetworkAddress Class Reference

Stores one IP address supported by a network interface. More...

#include <network-address.hpp>

Public Member Functions

AddressFamily getFamily () const
 Returns the address family. More...
 
boost::asio::ip::address getIp () const
 Returns the IP address (v4 or v6) More...
 
boost::asio::ip::address getBroadcast () const
 Returns the IP broadcast address. More...
 
uint32_t getFlags () const
 Returns a bitset of platform-specific flags enabled on the address. More...
 
AddressScope getScope () const
 Returns the address scope. More...
 
uint8_t getPrefixLength () const
 Returns the prefix length. More...
 

Friends

class NetworkMonitor::Impl
 
bool operator< (const NetworkAddress &a, const NetworkAddress &b)
 

Detailed Description

Stores one IP address supported by a network interface.

Definition at line 53 of file network-address.hpp.

Member Function Documentation

boost::asio::ip::address ndn::util::NetworkAddress::getBroadcast ( ) const
inline

Returns the IP broadcast address.

Definition at line 75 of file network-address.hpp.

AddressFamily ndn::util::NetworkAddress::getFamily ( ) const
inline

Returns the address family.

Definition at line 59 of file network-address.hpp.

uint32_t ndn::util::NetworkAddress::getFlags ( ) const
inline

Returns a bitset of platform-specific flags enabled on the address.

Definition at line 83 of file network-address.hpp.

boost::asio::ip::address ndn::util::NetworkAddress::getIp ( ) const
inline

Returns the IP address (v4 or v6)

Definition at line 67 of file network-address.hpp.

uint8_t ndn::util::NetworkAddress::getPrefixLength ( ) const
inline

Returns the prefix length.

Definition at line 99 of file network-address.hpp.

AddressScope ndn::util::NetworkAddress::getScope ( ) const
inline

Returns the address scope.

Definition at line 91 of file network-address.hpp.

Friends And Related Function Documentation

friend class NetworkMonitor::Impl
friend

Definition at line 114 of file network-address.hpp.

bool operator< ( const NetworkAddress a,
const NetworkAddress b 
)
friend

Definition at line 105 of file network-address.hpp.