There is HostIPv4 which listens for IPv4 connections.
There is HostIPv6 which listens for IPv6 connections.
And there is HostAny which should ideally listen for both. But it currently does not. It is equivalent to HostIPv4.
If you set AI_V4MAPPED flag on an IPv6 socket, it can listen for both IPv4 and IPv6 connections.
There is
HostIPv4
which listens for IPv4 connections. There isHostIPv6
which listens for IPv6 connections. And there isHostAny
which should ideally listen for both. But it currently does not. It is equivalent toHostIPv4
. If you setAI_V4MAPPED
flag on an IPv6 socket, it can listen for both IPv4 and IPv6 connections.