tags:

views:

84

answers:

1

I want to experiment with network programming in Haskell. The problem I have is that the documentation for the network package is pretty scarce, especially the one for Network.Socket which I want to use.

Do you know of some other references or clearly written projects where I can see how to use it? Are there any good alternatives to network?

+3  A: 

Network.Socket is just bindings to the Berkeley socket API. You should read Beej's Guide to network programming.

EDIT: If you're on *nix then see the man pages for socket, bind, listen, accept, connect, recv, send and family. No matter your OS, there are also some higher level packages on Hackage (ex: network-fancy, network-server) you should look at if all you want to do is communicate (and not get involved in the gritty details).

TomMD