Re: looking for a minimalistic example of RPC

Gerd Stolpmann <[email protected]> Mon, 12 Jan 2015 18:53:01 +0100
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
--===============4150631986978580546==
Content-Type: multipart/signed; micalg="pgp-sha1";
	protocol="application/pgp-signature"; 
	boundary="=-F9/22MUcKwWELdyUt0IE"


--=-F9/22MUcKwWELdyUt0IE
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable

Am Montag, den 12.01.2015, 17:49 +0100 schrieb Francois Berenger:
> Hello,
>=20
> Where can I find a minimalistic example of a client and server
> using ocamlnet's RPC library?
>=20
> 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.
>=20
> I am looking for something really trivial, for example:
>=20
> 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
--=20
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    [email protected]
My OCaml site:          http://www.camlcity.org
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------


--=-F9/22MUcKwWELdyUt0IE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJUtAn9AAoJEAaM4b9ZLB5TXJMH/ibq8P6a2NUIMc5ZFw1oMLMj
f/KvwfAfpEaFkSVNraex0+fcljjzaH/Jtvx1fhtgOkxeL1N+RacMYF1Dfg88sw26
d4lL70WJbjpwiQdpOccuYDB4MZPTg4WJg/D9E7AG3HZALNQF7Ri3rBSGRfUf42Xq
q7tp5xEHjSaLck/uWvYzEbqUEYm5mRaxULlaGWVhEcRqTxr9J/k11I5U3gHJbanM
2n3qyY3sb8o9c9ebOqXMw1YMG45XvD2XTXnUQ7a2V/Ia/sz5Tb1pCI17RGzZcR0C
r0kyENz4spfnprSJBwLAN6G6xlZysdug2WfeDosogXi+KaaaJb4bVefftT6IKB0=
=Tjbj
-----END PGP SIGNATURE-----

--=-F9/22MUcKwWELdyUt0IE--



--===============4150631986978580546==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
www.gigenet.com
--===============4150631986978580546==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel

--===============4150631986978580546==--