Not all the data structures you need are there last I looked. As you could infer from my recent posts, one of my dozen future projects is to add netinet/*.h like data structures to the Haskell network library (i.e. TCP, IPv4, UDP headers with Binary instances). This isn't to say your task would be much more difficult, but it would be nice to have a community wide definition available.
Tom On Thu, Jan 8, 2009 at 10:50 PM, John Goerzen <jgoer...@complete.org> wrote: > Andrew Coppin wrote: >> John Goerzen wrote: >>> On Thu, Jan 08, 2009 at 10:36:32AM -0700, John A. De Goes wrote: >>> >>>> The number of applications requiring the implementation of a custom web >>>> server is an insignificant fraction of the number of applications >>>> requiring a messaging system. I don't think anyone would dispute >>>> Haskell's ability to do low-level, raw networking, of the type that few >>>> people actually need to do. It's the higher level stuff where there's a >>>> huge amount of room for improvement. >>>> >>> I disagree on both points. >>> >>> Haskell has had somewhat of a deficit in the low-level networking >>> stuff, not even supporting IPv6 in the standard stack until just >>> recently. (That is, things like AF_INET6 were not present.) >>> >>> I think it has pretty much caught up by now though. >>> >> >> Any idea how I get Haskell to send ICMP ECHO packets? (And, obviously, >> receive the replies.) > > SocketType claims to support Raw, which I think is the conventional > means for doing this. Whether all the infrastructure for that is there, > I don't know. I have never worked with raw sockets though, so I may be > leading you down a dark mugger-laden alley here ;-) > > -- John > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe