|
libcppwrap
A collection of C++ wrappers for native APIs
|
Wraps struct sockaddr_in6, adding constructors for convenient initialization.
More...
#include <sockets.hpp>


Public Member Functions | |
| ipv6_address (std::uint16_t port=0) | |
| Initializes an IPv6 "any" address. More... | |
| ipv6_address (const char *address, std::uint16_t port=0) | |
| Initializes an IPv6 address. More... | |
| ipv6_address (const char *address, std::uint16_t port, unsigned interface_index) | |
| Initializes an IPv6 address. More... | |
| ipv6_address (const char *address, std::uint16_t port, const char *interface_name) | |
| Initializes an IPv6 address. More... | |
| ipv6_address (const in6_addr &address, std::uint16_t port=0) | |
| Initializes an IPv6 address. More... | |
| ipv6_address (const in6_addr &address, std::uint16_t port, unsigned interface_index) | |
| Initializes an IPv6 address. More... | |
| ipv6_address (const in6_addr &address, std::uint16_t port, const char *interface_name) | |
| Initializes an IPv6 address. More... | |
Wraps struct sockaddr_in6, adding constructors for convenient initialization.
| w::ipv6_address::ipv6_address | ( | std::uint16_t | port = 0 | ) |
Initializes an IPv6 "any" address.
| port | The port number. |
| std::system_error | An error occurred parsing address. |
| w::ipv6_address::ipv6_address | ( | const char * | address, |
| std::uint16_t | port = 0 |
||
| ) |
Initializes an IPv6 address.
| address | A numeric string representation of the IPv6 address. |
| port | The port number. |
| std::system_error | An error occurred parsing address. |
| w::ipv6_address::ipv6_address | ( | const char * | address, |
| std::uint16_t | port, | ||
| unsigned | interface_index | ||
| ) |
Initializes an IPv6 address.
| address | A numeric string representation of the IPv6 address. |
| port | The port number. |
| interface_index | The index of the interface to scope to. |
| std::system_error | An error occurred parsing address. |
| w::ipv6_address::ipv6_address | ( | const char * | address, |
| std::uint16_t | port, | ||
| const char * | interface_name | ||
| ) |
Initializes an IPv6 address.
| address | A numeric string representation of the IPv6 address. |
| port | The port number. |
| interface_name | The name of the interface to scope to. |
| std::system_error | An error occurred parsing address or looking up interface_name. |
| w::ipv6_address::ipv6_address | ( | const in6_addr & | address, |
| std::uint16_t | port = 0 |
||
| ) |
Initializes an IPv6 address.
| address | The IPv6 address. |
| port | The port number. |
| std::system_error | An error occurred parsing address. |
| w::ipv6_address::ipv6_address | ( | const in6_addr & | address, |
| std::uint16_t | port, | ||
| unsigned | interface_index | ||
| ) |
Initializes an IPv6 address.
| address | The IPv6 address. |
| port | The port number. |
| interface_index | The index of the interface to scope to. |
| std::system_error | An error occurred parsing address. |
| w::ipv6_address::ipv6_address | ( | const in6_addr & | address, |
| std::uint16_t | port, | ||
| const char * | interface_name | ||
| ) |
Initializes an IPv6 address.
| address | The IPv6 address. |
| port | The port number. |
| interface_name | The name of the interface to scope to. |
| std::system_error | An error occurred parsing address or looking up interface_name. |