Reputation: 27589
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
?
Upvotes: 2
Views: 700
Reputation: 137947
Chapter 27 of ``Real World Haskell'' introduces networking in Haskell.
Upvotes: 0
Reputation: 64740
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).
Upvotes: 3