... | ... | @@ -6,66 +6,92 @@ To run the examples, configure your environment as described in the setup sectio |
|
|
## Java
|
|
|
|
|
|
The requester/responder in Java can be tested. First start the Cameo server:
|
|
|
|
|
|
$ java fr.ill.ics.cameo.server.Server java/config/examples.xml
|
|
|
|
|
|
```
|
|
|
$ java fr.ill.ics.cameo.server.Server java/config/examples.xml
|
|
|
```
|
|
|
Then start the responder in a new shell:
|
|
|
|
|
|
$ cmo -p 10000 exec responder
|
|
|
|
|
|
```
|
|
|
$ cmo -p 10000 exec responder
|
|
|
```
|
|
|
Execute a requester in a new shell:
|
|
|
|
|
|
$ cmo -p 10000 exec requester my-request 10
|
|
|
|
|
|
```
|
|
|
$ cmo -p 10000 exec requester my-request 10
|
|
|
```
|
|
|
|
|
|
## C++
|
|
|
|
|
|
The requester/responder in C++ can be tested. First start the Cameo server:
|
|
|
|
|
|
$ java fr.ill.ics.cameo.server.Server cpp/config/examples.xml
|
|
|
|
|
|
```
|
|
|
$ java fr.ill.ics.cameo.server.Server cpp/config/examples.xml
|
|
|
```
|
|
|
Then start the responder in a new shell:
|
|
|
|
|
|
$ cmo -p 11000 exec responder
|
|
|
|
|
|
```
|
|
|
$ cmo -p 11000 exec responder
|
|
|
```
|
|
|
Execute a requester in a new shell:
|
|
|
```
|
|
|
$ cmo -p 11000 exec requester my-request 10
|
|
|
```
|
|
|
Execute the requester with the Java responder:
|
|
|
```
|
|
|
$ cmo -p 11000 exec requester my-request 10 tcp://localhost:10000
|
|
|
```
|
|
|
|
|
|
$ cmo -p 11000 exec requester my-request 10
|
|
|
## Python
|
|
|
|
|
|
Execute the requester with the Java responder:
|
|
|
In a shell, start the *responderpy* test:
|
|
|
```
|
|
|
$ cmo -p 11000 exec responderpy
|
|
|
```
|
|
|
In a shell, start the *requesterpy* application:
|
|
|
```
|
|
|
$ cmo -p 11000 exec requesterpy 1000
|
|
|
```
|
|
|
|
|
|
$ cmo -p 11000 exec requester my-request 10 tcp://localhost:10000
|
|
|
|
|
|
# Publisher/Subscriber
|
|
|
|
|
|
## Java
|
|
|
|
|
|
The publisher/subscriber in Java can be tested. First start the Cameo server:
|
|
|
|
|
|
$ java fr.ill.ics.cameo.server.Server java/config/examples.xml
|
|
|
|
|
|
```
|
|
|
$ java fr.ill.ics.cameo.server.Server java/config/examples.xml
|
|
|
```
|
|
|
Then start the publisher in a new shell:
|
|
|
|
|
|
$ cmo -p 10000 exec publisher
|
|
|
|
|
|
```
|
|
|
$ cmo -p 10000 exec publisher
|
|
|
```
|
|
|
Execute a subscriber in a new shell:
|
|
|
|
|
|
$ cmo -p 10000 exec subscriber
|
|
|
```
|
|
|
$ cmo -p 10000 exec subscriber
|
|
|
```
|
|
|
|
|
|
## C++
|
|
|
|
|
|
The publisher/subscriber in C++ can be tested. First start the Cameo server:
|
|
|
|
|
|
$ java fr.ill.ics.cameo.server.Server cpp/config/examples.xml
|
|
|
|
|
|
```
|
|
|
$ java fr.ill.ics.cameo.server.Server cpp/config/examples.xml
|
|
|
```
|
|
|
Then start the publisher in a new shell:
|
|
|
|
|
|
$ cmo -p 11000 exec publisher
|
|
|
|
|
|
```
|
|
|
$ cmo -p 11000 exec publisher
|
|
|
```
|
|
|
Execute a subscriber in a new shell:
|
|
|
|
|
|
$ cmo -p 11000 exec subscriber
|
|
|
|
|
|
```
|
|
|
$ cmo -p 11000 exec subscriber
|
|
|
```
|
|
|
Execute the requester with the Java publisher:
|
|
|
|
|
|
$ cmo -p 11000 exec subscriber tcp://localhost:10000 |
|
|
\ No newline at end of file |
|
|
```
|
|
|
$ cmo -p 11000 exec subscriber tcp://localhost:10000
|
|
|
```
|
|
|
|
|
|
## Python
|
|
|
|
|
|
In a shell, start the *publisherpy* test:
|
|
|
```
|
|
|
$ cmo -p 11000 exec publisherpy
|
|
|
```
|
|
|
In a shell, start the *subscriberpy* application:
|
|
|
```
|
|
|
$ cmo -p 11000 exec subscriberpy
|
|
|
``` |
|
|
\ No newline at end of file |