Belle II Software  release-05-01-25
b2hlt_worker.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <daq/hbasf2/apps/ZMQClasses.h>
11 #include <framework/logging/Logger.h>
12 
13 using namespace Belle2;
14 
20 int main(int argc, char* argv[])
21 {
22  ZMQWorker worker;
23  worker.initFromConsole("b2hlt_worker - mimick a worker process by sending a ready message back on every input (load-balanced connection) "
24  "and forwarding the message to the output, where it expects a confirmation (confirmed connection). "
25  "Behaves as a normal basf2-worker and can be used during testing."
26  , argc, argv);
27  worker.main();
28 
29  B2RESULT("Program terminated.");
30 }
Belle2::ZMQWorker
App to mimick a basf2-worker by accepting an incoming message with a ready message and sending it out...
Definition: ZMQClasses.h:73
main
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:77
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19