FairMQ/examples/multiple-channels
2023-03-06 15:32:48 +01:00
..
broadcaster.cxx Don't use to-be-deprecated names 2022-01-24 06:40:24 +01:00
CMakeLists.txt build(examples): Deduplicate code into add_example helper 2023-03-06 15:32:48 +01:00
fairmq-start-ex-multiple-channels.sh.in provide location for general fairmq devices/tools 2018-05-02 16:12:57 +02:00
README.md Don't use to-be-deprecated names 2022-01-24 06:40:24 +01:00
sampler.cxx Don't use to-be-deprecated names 2022-01-24 06:40:24 +01:00
sink.cxx Don't use to-be-deprecated names 2022-01-24 06:40:24 +01:00
test-ex-multiple-channels.sh.in Turn shm-monitor off by default 2023-02-24 14:28:18 +01:00

Multiple Channels

This example demonstrates how to work with multiple channels and multiplex between them.

A topology of three devices - Sampler, Sink and Broadcaster. The Sampler sends data to the Sink via the PUSH-PULL pattern. The Broadcaster device sends a message to both Sampler and Sink containing a string "OK" every second. The Broadcaster sends the message via PUB pattern. Both Sampler and Sink, besides doing their PUSH-PULL job, listen via SUB to the Broadcaster.

The multiplexing between their data channels and the broadcast channels happens with fair::mq::Poller.