#include <userver/utils/ip.hpp>
Base class for IPv4/IPv6 network.
Public Types | |
using | AddressType = Address |
Public Member Functions | |
NetworkBase (const AddressType &address, unsigned short prefix_length) | |
AddressType | GetAddress () const noexcept |
Get the address address of network. | |
unsigned char | GetPrefixLength () const noexcept |
Get prefix length of address network. | |
Static Public Attributes | |
static constexpr unsigned char | kMaximumPrefixLength |
using utils::ip::NetworkBase< Address, typename >::AddressType = Address |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |
|
friend |