ndn::net::NetworkAddress Class Reference

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

#include <ndn-cxx/net/network-address.hpp>

Public Member Functions

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

Friends

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.

Constructor & Destructor Documentation

ndn::net::NetworkAddress::NetworkAddress ( AddressFamily  family,
boost::asio::ip::address  ip,
boost::asio::ip::address  broadcast,
uint8_t  prefixLength,
AddressScope  scope,
uint32_t  flags 
)

Definition at line 45 of file network-address.cpp.

Member Function Documentation

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

Returns the IP broadcast address.

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

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

Returns the address family.

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

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

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

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

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

Returns the IP address (v4 or v6)

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

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

Returns the prefix length.

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

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

Returns the address scope.

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

Friends And Related Function Documentation

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

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