Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocamlnet: event queues
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-06 (22:43)
From: Philippe Strauss <philou@p...>
Subject: ocamlnet: event queues

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