From: Philippe Strauss <philou@philou.ch>
To: caml-list@inria.fr
Subject: ocamlnet: event queues
Date: Sat, 06 Nov 2010 23:43:03 +0100 [thread overview]
Message-ID: <4CD5D9F7.9050305@philou.ch> (raw)
Hello,
still in my first cut at rpc, in my app I need to react on a file
descriptor collectings logs for a child process, how do I transform
let esys = Unixqueue.standard_event_system () in
let server = Deconv_srv.Rpc_control.V1.create_server
~proc_connect: connect
~proc_set_input: set_input
~proc_set_deconvolution: set_deconvolution
(Rpc_server.Localhost 2345) Rpc.Tcp Rpc.Socket esys in
Unixqueue.run esys
to something where I can add an fd to the poll/select, and know which fd
has triggered one run of the loop?
I did found Netsys_pollset.pollset.add fd browsing the doc, but writing
a custom run() is another matter.
Thaaanks a lot.
next reply other threads:[~2010-11-06 22:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-06 22:43 Philippe Strauss [this message]
2010-11-07 4:01 ` [Caml-list] " Jake Donham
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=4CD5D9F7.9050305@philou.ch \
--to=philou@philou.ch \
--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