Belle II Software  release-05-01-25
NSMNodeDaemon.h
1 #ifndef _Belle2_NSMNodeDaemon_h
2 #define _Belle2_NSMNodeDaemon_h
3 
4 #include "daq/slc/nsm/NSMCallback.h"
5 
6 namespace Belle2 {
12  class NSMNodeDaemon {
13 
14  public:
15  NSMNodeDaemon() : m_timeout(0) {}
16  NSMNodeDaemon(NSMCallback* callback1,
17  const std::string host1, int port1,
18  NSMCallback* callback2 = NULL,
19  const std::string host2 = "", int port2 = 0)
20  : m_timeout(0)
21  {
22  add(callback1, host1, port1);
23  add(callback2, host2, port2);
24  }
25  virtual ~NSMNodeDaemon() {}
26 
27  public:
28  void add(NSMCallback* callback, const std::string& host, int port);
29 
30  public:
31  void run();
32 
33  private:
34  int m_timeout;
35  std::vector<NSMCallback*> m_callback;
36 
37  };
38 
40 }
41 
42 #endif
Belle2::NSMNodeDaemon
Definition: NSMNodeDaemon.h:12
Belle2::NSMCallback
Definition: NSMCallback.h:24
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19