[Haskell] Re: Existing Haskell IPv6 Code
Peter Simons
simons at cryp.to
Thu May 12 08:05:31 EDT 2005
Einar Karttunen writes:
> Lifting [network address information] to Haskell level
> seems quite pointless, as it is usually just fed back to
> the C functions.
Well, I certainly _do_ need it.
> The current way is to ignore adress families as much as
> possible while still supporting multiple ones. E.g. the
> following works with both IPv4 and IPv6 in network-alt:
>
> googleMainPage = do
> h <- connectTCP "www.google.com" "http"
That's true. However, it doesn't work with anything _but_
IPv4 and IPv6. I think it is unsatisfactory that you need a
different function to connect to a TCP target than to
connect to a Unix stream socket.
The longer I think about this whole thing, the more I am
convinced that using URIs is the answer.
Peter
More information about the Haskell
mailing list