2

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?

1

2 Answers 2

3

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).

Sign up to request clarification or add additional context in comments.

Comments

0

Chapter 27 of ``Real World Haskell'' introduces networking in Haskell.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.