Roger Meier | 9a3a564 | 2013-04-27 23:09:40 +0200 | [diff] [blame] | 1 | |
| 2 | This is the ocaml tutorial example. It assumes that you've already |
| 3 | built and installed the thrift ocaml runtime libraries in lib/ocaml. |
| 4 | |
| 5 | To compile this, you will need to generate the Thrift sources for |
| 6 | ocaml 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 | |
| 12 | This will produce two executables Calc{Server,Client}.<type> where |
| 13 | <type> is one of "byte" or "native", depending on your ocaml |
| 14 | installation. Just run the server in the background, then the client |
| 15 | (as you would do for the C++ example). |