From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 2606ABBC4 for ; Fri, 3 Apr 2009 20:13:58 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar4DANzu1UnRVd14m2dsb2JhbACVZD8BAQEBAQgJCgkRuQCCSgGBRAaHXgE X-IronPort-AV: E=Sophos;i="4.39,320,1235948400"; d="scan'208";a="23904552" Received: from mail-qy0-f120.google.com ([209.85.221.120]) by mail2-smtp-roc.national.inria.fr with ESMTP; 03 Apr 2009 20:13:57 +0200 Received: by qyk26 with SMTP id 26so2204616qyk.1 for ; Fri, 03 Apr 2009 11:13:56 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1238773897.9723.6.camel@flake.lan.gerd-stolpmann.de> Date: Fri, 3 Apr 2009 11:13:41 -0700 Received: by 10.224.67.14 with SMTP id p14mr1804788qai.271.1238782436368; Fri, 03 Apr 2009 11:13:56 -0700 (PDT) Message-ID: Subject: Re: [Caml-list] netplex multi-thread asynchronous processor for passive clients From: Jake Donham To: Serge Sivkov Cc: Gerd Stolpmann , caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocamlnet-:01 ocaml:01 2009:98 ssp:98 wrote:01 caml-list:01 asynchronous:03 asynchronous:03 serge:05 fri:05 apr:06 processor:08 release:09 useful:09 i'm:09 On Fri, Apr 3, 2009 at 10:55 AM, Serge Sivkov wrote: > I 've look through sources of the netplex. For now i clearly see how > synchronious service works, > but i don't understand workflow of anyncronious version of netplex > services (i'm using ocamlnet-2.2.9). Can you explain what you're trying to achieve? I don't understand why you want to connect #receive_message to #process. You might find it easier to use Ocamlnet's RPC implementation to build an asynchronous service. At least, looking at rpc_server.ml as an example of an asynchronous service will be useful. You may also be interested in orpc, which gives you a way to generate RPC services from an OCaml signature: http://code.google.com/p/orpc2/ (new release coming soon.) Jake