On the server side the IPV6 socket API is used if available, which allows to accept both IP V4 and V6 connection requests.
On a machine where IPV6 is not configured, everything will work as before.
For must user code no changes should be necessary. For the NetAddress
class the following new methods are available:
int family() const
returns the address family (AF_INET or AF_INET6)in6_addr inet_addr_v6() const
returns the IPV6 address bool getsockaddr(sockaddr_storage& saddr) const;
provides the generic socket address
The Interface
class provides the following new methods:
int family() const
returns the address familyin6_addr address_v6() const
returns the IPV6 address in6_addr netmask_v6() const
returns the IPV6 network maskin6_addr network_v6() const
returns the IPV6 networkfind()
methods have been augmented with an optional address family parameter to
specify which information is to be returned (default is AF_INET).