blob: f68e835253c9e087e048dba708dd5013a7bb64c5 [file] [log] [blame]
Roger Meier9a3a5642013-04-27 23:09:40 +02001
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).