caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniil Baturin <daniil@baturin.org>
To: caml-list@inria.fr
Subject: [Caml-list] Handling concurrent connections with Lwt
Date: Mon, 04 May 2015 22:26:46 +0600	[thread overview]
Message-ID: <55479DC6.4090404@baturin.org> (raw)
In-Reply-To: <554372F6.9090703@cs.ru.nl>

Hi all,

I'm trying to figure out how to handle concurrent connections with Lwt,
and I'm quite confused.

Suppose I'm writing an IRC server (actually I'm not, but connection
handling model will be similar).
I need to accept connections, read from descriptors, and update some state.

So far I've only found examples of handling HTTP-style requests (reply
and close).

What is the proper way to do this in Lwt? Are there any projects or code
examples I can learn from?

Thanks,
Daniil



  reply	other threads:[~2015-05-04 16:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-01 12:35 [Caml-list] [TFP'15] call for participation Peter Achten
2015-05-04 16:26 ` Daniil Baturin [this message]
2015-05-04 17:33   ` [Caml-list] Handling concurrent connections with Lwt Ivan Gotovchits
2015-05-04 20:07     ` Daniil Baturin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55479DC6.4090404@baturin.org \
    --to=daniil@baturin.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).