Stores one IP address supported by a network interface. More...
#include <ndn-cxx/net/network-address.hpp>
Public Member Functions | |
NetworkAddress (AddressFamily family, const boost::asio::ip::address &ip, const 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... | |
bool | isDeprecated () const |
Returns true if the address is deprecated. More... | |
Friends | |
bool | operator< (const NetworkAddress &a, const NetworkAddress &b) |
Stores one IP address supported by a network interface.
Definition at line 53 of file network-address.hpp.
ndn::net::NetworkAddress::NetworkAddress | ( | AddressFamily | family, |
const boost::asio::ip::address & | ip, | ||
const boost::asio::ip::address & | broadcast, | ||
uint8_t | prefixLength, | ||
AddressScope | scope, | ||
uint32_t | flags | ||
) |
Definition at line 48 of file network-address.cpp.
|
inline |
Returns the IP broadcast address.
Definition at line 85 of file network-address.hpp.
|
inline |
Returns the address family.
Definition at line 67 of file network-address.hpp.
|
inline |
Returns a bitset of platform-specific flags enabled on the address.
Definition at line 112 of file network-address.hpp.
|
inline |
Returns the IP address (v4 or v6)
Definition at line 76 of file network-address.hpp.
|
inline |
Returns the prefix length.
Definition at line 94 of file network-address.hpp.
|
inline |
Returns the address scope.
Definition at line 103 of file network-address.hpp.
bool ndn::net::NetworkAddress::isDeprecated | ( | ) | const |
Returns true if the address is deprecated.
Definition at line 64 of file network-address.cpp.
|
friend |
Definition at line 125 of file network-address.hpp.