... | ... | @@ -168,6 +168,8 @@ except cameopy.InitException: |
|
|
|
|
|
You can notice that no port was provided to define the requester and responder. Only a name was provided. The **ports** are **assigned dynamically** internally but the programmer does not have to care about.
|
|
|
|
|
|
Be careful, the responder must receive requests in a loop after the init otherwise any requester will block when initializing.
|
|
|
|
|
|
# Publisher/Subscriber
|
|
|
|
|
|
Another useful communication pattern is the publish/subscribe pattern. It allows asynchronous messages from one application to other ones. Let's define a Java application *PubJava* which defines a publisher:
|
... | ... | |