[Haskell-beginners] Convert numeric IP to Network.Socket.HostAddress

Brandon Allbery allbery.b at gmail.com
Thu Feb 6 14:38:46 UTC 2014


On Thu, Feb 6, 2014 at 5:04 AM, harry <voldermort at hotmail.com> wrote:

> Tim Perry <tim.v2.0 <at> gmail.com> writes:
> > 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
>
> What's the input format? All it says is String.


You don't want SockAddrUnix. It's for AF_UNIX / AF_LOCAL sockets, which
live in the filesystem, and the parameter is the pathname of the socket.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140206/2adbecc3/attachment.html>


More information about the Beginners mailing list