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


Public Member Functions | |
| ipv4_address (std::uint16_t port=0) | |
| Initializes an IPv4 "any" address. More... | |
| ipv4_address (const char *address, std::uint16_t port=0) | |
| Initializes an IPv4 address. More... | |
| ipv4_address (const in_addr &address, std::uint16_t port=0) | |
| Initializes an IPv4 address. More... | |
Wraps struct sockaddr_in, adding constructors for convenient initialization.
| w::ipv4_address::ipv4_address | ( | std::uint16_t | port = 0 | ) |
Initializes an IPv4 "any" address.
| port | The port number. |
| std::system_error | An error occurred parsing address. |
| w::ipv4_address::ipv4_address | ( | const char * | address, |
| std::uint16_t | port = 0 |
||
| ) |
Initializes an IPv4 address.
| address | A numeric string representation of the IPv4 address. |
| port | The port number. |
| std::system_error | An error occurred parsing address. |
| w::ipv4_address::ipv4_address | ( | const in_addr & | address, |
| std::uint16_t | port = 0 |
||
| ) |
Initializes an IPv4 address.
| address | The IPv4 address. |
| port | The port number. |
| std::system_error | An error occurred parsing address. |