#include <userver/utils/ip.hpp>
INET IPv4/IPv4 network.
Public Types | |
enum class | AddressFamily : unsigned char { IPv4 = AF_INET , IPv6 = AF_INET6 } |
Public Member Functions | |
InetNetwork (std::vector< unsigned char > &&bytes, unsigned char prefix_length, AddressFamily address_family) | |
const std::vector< unsigned char > & | GetBytes () const noexcept |
Get the address in bytes. | |
unsigned char | GetPrefixLength () const noexcept |
Get the prefix length of network. | |
AddressFamily | GetAddressFamily () const noexcept |
Get the address family. | |
|
inlinenoexcept |
|
friend |
|
friend |