
8 Sep
2007
8 Sep
'07
11:44 p.m.
Peter Simons wrote:
the module Network.Socket provides 'getaddrinfo' only if IPv6 support is enabled. That surprises me because, as far as I know, there is nothing IPv6-specific about that function.
The RFC that introduced it did so for the purpose of supporting IPv6. The configure checks don't care if IPv6 is actually enabled, merely that there's a working IPv6-capable API. You can then use getAddrInfo on IPv4 or IPv6 addresses as you wish.