... | ... | @@ -94,4 +94,20 @@ int main(int argc, char *argv[]) { |
|
|
|
|
|
It simply contacts the Cameo server in B and starts *App2* then waits for its termination.
|
|
|
|
|
|
The application *App3* written in Python has the following lines: |
|
|
\ No newline at end of file |
|
|
The application *App3* written in Python has the following lines:
|
|
|
|
|
|
```python
|
|
|
import cameopy
|
|
|
|
|
|
# Define the reference to the Cameo server in B.
|
|
|
server = cameopy.Server("tcp://B:7000")
|
|
|
|
|
|
# Connect the application "App2" that is supposed running.
|
|
|
app2 = server.connect("App2")
|
|
|
|
|
|
# Stop the app.
|
|
|
app2.stop()
|
|
|
|
|
|
# Wait for the end of the app.
|
|
|
state = app.waitFor()
|
|
|
``` |