Stores one IP address supported by a network interface. More...
#include <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) | |
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... | |
uint8_t | getPrefixLength () const |
Returns the prefix length. More... | |
AddressScope | getScope () const |
Returns the address scope. More... | |
uint32_t | getFlags () const |
Returns a bitset of platform-specific flags enabled on the address. More... | |
Friends | |
bool | operator< (const NetworkAddress &a, const NetworkAddress &b) |
Stores one IP address supported by a network interface.
Definition at line 52 of file network-address.hpp.
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.
|
inline |
Returns the address family.
Definition at line 65 of file network-address.hpp.
|
inline |
Returns the IP address (v4 or v6)
Definition at line 73 of file network-address.hpp.
Referenced by ndn::net::NetworkInterface::addNetworkAddress(), and ndn::net::operator<<().
|
inline |
Returns the IP broadcast address.
Definition at line 81 of file network-address.hpp.
|
inline |
Returns the prefix length.
Definition at line 89 of file network-address.hpp.
Referenced by ndn::net::operator<<().
|
inline |
Returns the address scope.
Definition at line 97 of file network-address.hpp.
|
inline |
Returns a bitset of platform-specific flags enabled on the address.
Definition at line 105 of file network-address.hpp.
|
friend |
Definition at line 111 of file network-address.hpp.