... | ... | @@ -185,3 +185,21 @@ Same comments as for Java. |
|
|
Code is available:
|
|
|
* [Publisher python](https://code.ill.fr/cameo/cameo/-/blob/master/examples/python/src/publisherapp.py)
|
|
|
* [Subscriber python](https://code.ill.fr/cameo/cameo/-/blob/master/examples/python/src/subscriberapp.py)
|
|
|
|
|
|
|
|
|
## Mixing languages
|
|
|
|
|
|
You can mix the langagues e.g. *cpp* with *python*:
|
|
|
```
|
|
|
$ cmo -p 11000 exec subscriber-python tcp://localhost:11000 cpp
|
|
|
```
|
|
|
|
|
|
## Remote execution
|
|
|
|
|
|
You can also execute the last example in three different computers:
|
|
|
|
|
|
```
|
|
|
$ cmo -e tcp://computer-a:11000 exec subscriber-python tcp://computer-b:11000 cpp
|
|
|
```
|
|
|
|
|
|
The console *cmo* application is executing *subscriber-python* on *computer-a* which interacts with *publisher-cpp* executing on *computer-b*. |
|
|
\ No newline at end of file |