#include <userver/utils/ip.hpp>
INET IPv4/IPv4 network.
- Warning
- InetNetwork class is deprecated. You should use InetNetwork class via transformation function to/from NetworkV4/NetworkV6. Use this class only if you need to work with INET PostgreSQL format.
Definition at line 173 of file ip.hpp.
|
enum class | AddressFamily : unsigned char {
IPv4 = AF_INET
,
IPv6 = AF_INET6
} |
|
|
| 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.
|
|
◆ AddressFamily
enum class utils::ip::InetNetwork::AddressFamily : unsigned char |
|
strong |
◆ GetAddressFamily()
AddressFamily utils::ip::InetNetwork::GetAddressFamily |
( |
| ) |
const |
|
inlinenoexcept |
Get the address family.
Definition at line 188 of file ip.hpp.
◆ GetBytes()
const std::vector< unsigned char > & utils::ip::InetNetwork::GetBytes |
( |
| ) |
const |
|
inlinenoexcept |
Get the address in bytes.
Definition at line 182 of file ip.hpp.
◆ GetPrefixLength()
unsigned char utils::ip::InetNetwork::GetPrefixLength |
( |
| ) |
const |
|
inlinenoexcept |
Get the prefix length of network.
Definition at line 185 of file ip.hpp.
◆ operator!=
◆ operator==
The documentation for this class was generated from the following file: