On Sun, Oct 24, 2010 at 3:34 AM, Jon Harrop <j...@ffconsultancy.com> wrote:

> Is there a tutorial on using something like LWT for asynchronous
> programming
> in OCaml? I'm looking for an example like an echo server that handles
> clients concurrently without blocking threads, so it can handle thousands
> of
> clients without significant performance degradation.
>

Not a tutorial, but here is a minimal TCP server in LWT:


http://github.com/avsm/ocaml-cohttpserver/blob/master/server/http_tcp_server.ml

Jake
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to