#include <inet6_factory.h>
Public Types | |
typedef sockaddr_in6 | sockaddr_t |
Base sockaddr type. | |
Public Member Functions | |
ipv6_address () | |
Default constructor. | |
ipv6_address (in6_addr const &address, unsigned short port) | |
Constructor. | |
ipv6_address (ipv6_address const &that) | |
Copy constructor. | |
ipv6_address (sockaddr_in6 const &that) | |
Copy constructor. | |
ipv6_address (sockaddr const &that) | |
Copy constructor. | |
ipv6_address & | operator= (ipv6_address const &that) |
Assignment operator. | |
ipv6_address & | operator= (sockaddr_in6 const &that) |
Assignment operator. | |
ipv6_address & | operator= (sockaddr const &that) |
Assignment operator. | |
Static Public Attributes | |
static const int | AF = AF_INET6 |
Address family code. | |
static in6_addr const & | any |
Any address. | |
static in6_addr const & | loopback |
The loopback address. |
Definition at line 39 of file inet6_factory.h.
|
Constructor. Takes an IPv6 address and a transport port. Parameters are expected in network byte order. For a randomly chosen address, pass in ipv6_address::any as first argument. For a randomly chosen port, pass in 0 as second argument. |
|
Copy constructor. Checks if address structure is of the correct family. |
|
Assignment operator. Checks if address structure is of the correct family. |