Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
cameo
cameo
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Cameo
  • cameocameo
  • Wiki
  • examples

examples

Last edited by yannick legoc Dec 14, 2020
Page history

Examples


Requester/Responder

The requester/responder in Java can be tested. First start the Cameo server with jzmq:

$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server src/main/java/fr/ill/ics/cameo/examples/jzmq-config.xml

Then start the responder in a new shell:

$ cmo -p 10000 exec responder

Execute a requester in a new shell:

$ cmo -p 10000 exec requester my-request 10

The requester/responder in C++ can be tested. First start the Cameo server with jzmq:

$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server src/examples/config.xml

Then start the responder in a new shell:

$ 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

Publisher/Subscriber

The publisher/subscriber in Java can be tested. First start the Cameo server with jzmq:

$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server src/main/java/fr/ill/ics/cameo/examples/jzmq-config.xml

Then start the publisher in a new shell:

$ cmo -p 10000 exec publisher

Execute a subscriber in a new shell:

$ cmo -p 10000 exec subscriber

The publisher/subscriber in C++ can be tested. First start the Cameo server with jzmq:

$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server src/examples/config.xml

Then start the publisher in a new shell:

$ cmo -p 11000 exec publisher

Execute a subscriber in a new shell:

$ cmo -p 11000 exec subscriber

Execute the requester with the Java publisher:

$ cmo -p 11000 exec subscriber tcp://localhost:10000
Clone repository
  • JZMQ or JeroMQ?
  • Version 1.0
  • all tests
  • cpp installation
  • dependencies
  • developments
  • example of code
  • examples
  • Home
  • implementation
  • linux tests
  • python
  • windows compilation
  • windows package
  • windows tests