Bryan O'Sullivan bos at
Sat Sep 8 23:44:27 EDT 2007

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.


More information about the Libraries mailing list