mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Initialize all data members in initializer lists. Reorder data members in initializer list to have the same order as in the class declaration. Comment or remove unused parameters and unused variables. Convert all old style casts to the correct and explicit c++ cast like const_cast, static_cast, dynamic_cast or reinterpret_cast. In most cases static_cast is used. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ex4-copypush.json | ||
FairMQExample4Sampler.cxx | ||
FairMQExample4Sampler.h | ||
FairMQExample4Sink.cxx | ||
FairMQExample4Sink.h | ||
README.md | ||
runExample4Sampler.cxx | ||
runExample4Sink.cxx |
Example 4: Copy & Push
A topology consisting of one Sampler and two Sinks. The Sampler uses the Copy
method to send the same data to both sinks with the PUSH-PULL pattern. In contrary to the PUB-PATTERN pattern, this ensures that all receivers are connected and no data is lost, but requires additional sockets.