| | 4 | |
| | 5 | |
| | 6 | == Current status == |
| | 7 | |
| | 8 | Acutaly, you could compile and use the code available on the svn server on your own GNU / LINUX platform this way : |
| | 9 | |
| | 10 | ==== Getting the source code ==== |
| | 11 | To get the source code and compile on your platform, use the following command : |
| | 12 | {{{ |
| | 13 | #!sh |
| | 14 | cd zoo/trunk/ |
| | 15 | svn checkout svn+ssh://dev.cartography.st/mnt/data3/zoo-project/trunk/zoo-kernel zoo-kernel |
| | 16 | }}} |
| | 17 | |
| | 18 | ==== Compiling the source code ==== |
| | 19 | First of all, you'll need to edit the Makefile and uncomment "{{{-DLINUX_FREE_ISSUE}}}" on the first line, then use the following commands : |
| | 20 | {{{ |
| | 21 | #!sh |
| | 22 | cd zoo-kernel |
| | 23 | make |
| | 24 | make demo_service.zo |
| | 25 | }}} |
| | 26 | |
| | 27 | Now, you get the ZooKernel and two "service providers" : {{{demo_service.zo}}} (C++) and {{{test_service.py}}} (Python). |
| | 28 | |
| | 29 | ==== Using the code ==== |
| | 30 | To run request to ZooKernel, use the following from your command line : |
| | 31 | |
| | 32 | {{{ |
| | 33 | #!sh |
| | 34 | ./service_loader ./ test_service.zo GetCapabilities |
| | 35 | ./service_loader ./Buffer.zcfg test_service.zo DescribeProcess |
| | 36 | ./service_loader ./Buffer.zcfg ./demo_service.zo Execute helloworld |
| | 37 | ./service_loader ./Buffer.zcfg ./demo_service.zo Execute printAgrument 1 2 |
| | 38 | ./service_loader ./Buffer.zcfg ./demo_service.zo Execute printAgrument 1 2 bg |
| | 39 | ./service_loader ./Distance.zcfg test_service Execute helloworld |
| | 40 | }}} |
| | 41 | |
| | 42 | Finally you've runed two services from two services provider, the same way. |