INET IPv4/IPv4 network. More...
#include <userver/utils/ip.hpp>
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. | |
Friends | |
| bool | operator== (const InetNetwork &lhs, const InetNetwork &rhs) |
| bool | operator!= (const InetNetwork &lhs, const InetNetwork &rhs) |
INET IPv4/IPv4 network.
|
inlinenoexcept |
|
friend |
|
friend |