australis/vendor/git.apache.org/thrift.git/tutorial/ocaml
Renan DelValle 6ab5c9334d
gorealis v2 refactor (#5)
* Changing default timeout for start maintenance.

* Upgrading dependencies to gorealis v2 and thrift  0.12.0

* Refactored to update to gorealis v2.
2018-12-27 11:31:51 -08:00
..
_oasis gorealis v2 refactor (#5) 2018-12-27 11:31:51 -08:00
CalcClient.ml Checking in vendor folder for ease of using go get. 2018-10-23 23:32:59 -07:00
CalcServer.ml Checking in vendor folder for ease of using go get. 2018-10-23 23:32:59 -07:00
README.md Checking in vendor folder for ease of using go get. 2018-10-23 23:32:59 -07:00

This is the ocaml tutorial example. It assumes that you've already built and installed the thrift ocaml runtime libraries in lib/ocaml.

To compile this, you will need to generate the Thrift sources for ocaml in this directory (due to limitations in the OASIS build-tool):

% thrift -r --gen ocaml ../tutorial.thrift % oasis setup % make

This will produce two executables Calc{Server,Client}. where is one of "byte" or "native", depending on your ocaml installation. Just run the server in the background, then the client (as you would do for the C++ example).