• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

CalcClient.mlD11-Mar-20242.3 KiB7566

CalcServer.mlD11-Mar-20242.5 KiB9078

README.mdD11-Mar-2024584 1611

_oasisD11-Mar-2024796 3329

README.md

1
2This is the ocaml tutorial example.  It assumes that you've already
3built and installed the thrift ocaml runtime libraries in lib/ocaml.
4
5To compile this, you will need to generate the Thrift sources for
6ocaml in this directory (due to limitations in the OASIS build-tool):
7
8  % thrift -r --gen ocaml ../tutorial.thrift
9  % oasis setup
10  % make
11
12This will produce two executables Calc{Server,Client}.<type> where
13<type> is one of "byte" or "native", depending on your ocaml
14installation.  Just run the server in the background, then the client
15(as you would do for the C++ example).
16