Base class for IPv4/IPv6 addresses. More...
#include <userver/utils/ip.hpp>
Public Types | |
using | BytesType = std::array< unsigned char, N > |
Public Member Functions | |
AddressBase (const BytesType &address) | |
const BytesType & | GetBytes () const noexcept |
Get the address in bytes, in network byte order. | |
Static Public Attributes | |
static constexpr std::size_t | AddressSize = N |
Friends | |
bool | operator== (const AddressBase< N > &a1, const AddressBase< N > &a2) noexcept |
bool | operator!= (const AddressBase< N > &a1, const AddressBase< N > &a2) noexcept |
Base class for IPv4/IPv6 addresses.
|
inlinenoexcept |
|
inlineexplicit |
|
inlinenoexcept |
|
friend |
|
friend |
|
staticconstexpr |