Belle II Software development
b2hlt_worker.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <daq/hbasf2/apps/ZMQClasses.h>
9#include <framework/logging/Logger.h>
10
11using namespace Belle2;
12
18int main(int argc, char* argv[])
19{
20 ZMQWorker worker;
21 worker.initFromConsole("b2hlt_worker - mimick a worker process by sending a ready message back on every input (load-balanced connection) "
22 "and forwarding the message to the output, where it expects a confirmation (confirmed connection). "
23 "Behaves as a normal basf2-worker and can be used during testing."
24 , argc, argv);
25 worker.main();
26
27 B2RESULT("Program terminated.");
28}
App to mimick a basf2-worker by accepting an incoming message with a ready message and sending it out...
Definition: ZMQClasses.h:63
Abstract base class for different kinds of events.