From: Gerd S. <in...@ge...> - 2013-09-23 11:07:34
|
Am Freitag, den 20.09.2013, 16:08 +0200 schrieb Davide Ramaglietta: > Hi, > > is there exist any possible way to implement a server using only Netplex (avoiding the RPC layer implication), > which provides a asynchronous processor such that can handles several connection in parallel? Yes, of course. There is no example in the distribution, but look at examples/netplex/hello_world.ml: The method [process] gets a file descriptor fd, and it can do anything with it. fd is by default in non-blocking mode. When you are done with fd, call [when_done]. You'll have to use the event_system of the Netplex container for asynchronous processing, i.e. container#event_system, where container = Netplex_cenv.self_cont() if you don't have it at hand otherwise. Gerd > Best regards, > --Davide. > ------------------------------------------------------------------------------ > LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! > 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint > 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes > Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. > http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk > _______________________________________________ > Ocamlnet-devel mailing list > Oca...@li... > https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany ge...@ge... My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------ |