Base class for IPv4/IPv6 network. More...
#include <userver/utils/ip.hpp>
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 |
Friends | |
| bool | operator== (const NetworkBase< Address > &a, const NetworkBase< Address > &b) noexcept |
| bool | operator!= (const NetworkBase< Address > &a, const NetworkBase< Address > &b) noexcept |
Base class for IPv4/IPv6 network.
| using utils::ip::NetworkBase< Address, typename >::AddressType = Address |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |
|
friend |