Types
-
enum class PL::NetworkAddressFamily
Network address family.
Values:
-
enumerator unknown
unknown address family
-
enumerator ipV4
IPv4 address family.
-
enumerator ipV6
IPv6 address family.
-
enumerator unknown
-
struct IpV4Address
IPv4 address.
Public Functions
-
IpV4Address()
Creates a zero IPv4 address.
-
IpV4Address(uint8_t u8_0, uint8_t u8_1, uint8_t u8_2, uint8_t u8_3)
Creates an IPv4 address from bytes in network byte order.
-
IpV4Address(uint16_t u16_0, uint16_t u16_1)
Creates an IPv4 address from words in network byte order.
-
IpV4Address(uint32_t u32)
Creates an IPv4 address from dword in network byte order.
-
IpV4Address(const std::string &address)
Creates an IPv4 address from string.
-
std::string ToString() const
Converts address to string.
- Returns:
address as string
-
IpV4Address()
-
struct IpV6Address
IPv6 address.
Public Functions
-
IpV6Address()
Creates a zero IPv6 address.
-
IpV6Address(uint8_t u8_0, uint8_t u8_1, uint8_t u8_2, uint8_t u8_3, uint8_t u8_4, uint8_t u8_5, uint8_t u8_6, uint8_t u8_7, uint8_t u8_8, uint8_t u8_9, uint8_t u8_10, uint8_t u8_11, uint8_t u8_12, uint8_t u8_13, uint8_t u8_14, uint8_t u8_15, uint8_t zoneId = 0)
Creates an IPv6 address from bytes in network byte order.
-
IpV6Address(uint16_t u16_0, uint16_t u16_1, uint16_t u16_2, uint16_t u16_3, uint16_t u16_4, uint16_t u16_5, uint16_t u16_6, uint16_t u16_7, uint8_t zoneId = 0)
Creates an IPv6 address from words in network byte order.
-
IpV6Address(uint32_t u32_0, uint32_t u32_1, uint32_t u32_2, uint32_t u32_3, uint8_t zoneId = 0)
Creates an IPv6 address from dwords in network byte order.
-
IpV6Address(const std::string &address)
Creates an IPv6 address from string.
-
std::string ToString() const
Converts address to string.
- Returns:
address as string
-
IpV6Address()
-
struct NetworkAddress
Network address (IPv4 or IPv6)
Public Functions
-
NetworkAddress()
Creates a zero network address.
-
NetworkAddress(IpV4Address address)
Creates an IPv4 address.
-
NetworkAddress(IpV6Address address)
Creates an IPv6 address.
-
std::string ToString() const
Converts address to string.
- Returns:
address as string
Public Members
-
NetworkAddressFamily family
Address family.
-
IpV4Address ipV4
IPv4 address.
-
IpV6Address ipV6
IPv6 address.
-
NetworkAddress()
-
struct NetworkEndpoint
Network endpoint (address and port)
Public Functions
-
NetworkEndpoint()
Creates zero network endpoint.
-
NetworkEndpoint(IpV4Address address, uint16_t port)
Creates an IPv4 network endpoint.
-
NetworkEndpoint(IpV6Address address, uint16_t port)
Creates an IPv6 network endpoint.
-
NetworkEndpoint()