... | ... | @@ -35,7 +35,7 @@ We present a sample of code where two Cameo applications interact with a publish |
|
|
* a C++ application Subscriber which starts the Publisher application on the local Cameo server and subscribes to it.
|
|
|
|
|
|
Code for the C++ Publisher application:
|
|
|
<pre><code class="cpp">
|
|
|
```cpp
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
|
|
// Initialise the nappli application represented by This.
|
... | ... | @@ -74,10 +74,9 @@ int main(int argc, char *argv[]) { |
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
</code></pre>
|
|
|
|
|
|
```
|
|
|
Code for the Java Subscriber application:
|
|
|
<pre><code class="java">
|
|
|
```java
|
|
|
public class SubscriberApplication {
|
|
|
|
|
|
public static void main(String[] args) {
|
... | ... | @@ -128,7 +127,7 @@ public class SubscriberApplication { |
|
|
}
|
|
|
|
|
|
}
|
|
|
</code></pre>
|
|
|
```
|
|
|
|
|
|
Define the code is not enough to run Cameo applications. We need to configure a Cameo server with the following configuration file:
|
|
|
<pre><code class="xml">
|
... | ... | |