|
From: Gerd S. <in...@ge...> - 2015-01-12 17:53:16
|
Am Montag, den 12.01.2015, 17:49 +0100 schrieb Francois Berenger: > Hello, > > Where can I find a minimalistic example of a client and server > using ocamlnet's RPC library? > > I looked into the sources of ocamlnet in examples/rpc/finder > but the finder example uses netplex, so it is not really > a minimalistic example. > > I am looking for something really trivial, for example: > > A module A with function 'some_int ()' that returns > an int each time it is called. > A module B, client of A which would invoke the remote some_int > method provided by module A and get the result in a synchronous manner. The "queues" examples is of that type (well, it's not using netplex, and the clients are synchronous, and there are also synchronous server functions, e.g. create_queue). The data types are a bit more complicated than just ints, though. You can also look into tests/rpc/bench, it's even simpler. (I think tests/ is only in the svn repo.) Gerd -- ------------------------------------------------------------ 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 ------------------------------------------------------------ |