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) |
Stores one IP address supported by a network interface.
Definition at line 53 of file network-address.hpp.
|
inline |
Returns the IP broadcast address.
Definition at line 75 of file network-address.hpp.
|
inline |
Returns the address family.
Definition at line 59 of file network-address.hpp.
|
inline |
Returns a bitset of platform-specific flags enabled on the address.
Definition at line 83 of file network-address.hpp.
|
inline |
Returns the IP address (v4 or v6)
Definition at line 67 of file network-address.hpp.
|
inline |
Returns the prefix length.
Definition at line 99 of file network-address.hpp.
|
inline |
Returns the address scope.
Definition at line 91 of file network-address.hpp.
|
friend |
Definition at line 114 of file network-address.hpp.
|
friend |
Definition at line 105 of file network-address.hpp.