[Haskell-beginners] Convert numeric IP to Network.Socket.HostAddress
Tim Perry
tim.v2.0 at gmail.com
Sun Feb 2 21:30:45 UTC 2014
Can you use the SockAddrUnix constructor of SockAddr?
See
http://hackage.haskell.org/package/network-2.2.1.3/docs/Network-Socket.html#t%3ASockAddr
Tim Perry
(916) 505-3634
On Sun, Feb 2, 2014 at 1:01 PM, harry <voldermort at hotmail.com> wrote:
> I need to convert a numeric IP (such as 1.2.3.4) to a HostAddress for
> consumption by SockAddrInet. The only function I can find to do this is
> inet_addr, which is impure (can do DNS lookups). Is there a pure
> conversion?
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140202/f7ff241e/attachment.html>
More information about the Beginners
mailing list