[Haskell-cafe] Low-level networking [Haskell not ready for Foo]

Thomas DuBuisson thomas.dubuisson at gmail.com
Thu Jan 8 19:35:13 EST 2009

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.


On Thu, Jan 8, 2009 at 10:50 PM, John Goerzen <jgoerzen at 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list