From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 9389DBC57 for ; Sat, 6 Nov 2010 23:43:05 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwFAA531Uw+3JIE/2dsb2JhbACUC41+cbtchUgEilU X-IronPort-AV: E=Sophos;i="4.58,308,1286143200"; d="scan'208";a="86434608" Received: from vs.philou.ch ([62.220.146.4]) by mail1-smtp-roc.national.inria.fr with ESMTP; 06 Nov 2010 23:43:05 +0100 Received: from air.lan (85-218-16-6.dclient.lsne.ch [85.218.16.6]) by vs.philou.ch (Postfix) with ESMTPSA id 3704F202C001 for ; Sat, 6 Nov 2010 23:48:28 +0100 (CET) Message-ID: <4CD5D9F7.9050305@philou.ch> Date: Sat, 06 Nov 2010 23:43:03 +0100 From: Philippe Strauss User-Agent: Postbox 2.0.2 (Macintosh/20101025) MIME-Version: 1.0 To: caml-list@inria.fr Subject: ocamlnet: event queues Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocamlnet:01 srv:98 descriptor:02 let:03 let:03 triggered:05 transform:05 queues:06 standard:07 philippe:11 file:11 poll:12 create:12 writing:12 loop:13 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.