Belle II Software  release-06-00-14
RxSocketModule.h
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 
9 #ifndef RXMODULE_H
10 #define RXMODULE_H
11 
12 #include <framework/core/Module.h>
13 #include <daq/dataflow/EvtSocket.h>
14 
15 #include <framework/pcore/DataStoreStreamer.h>
16 
17 namespace Belle2 {
28  class RxSocketModule : public Module {
29 
30  // Public functions
31  public:
32 
35  virtual ~RxSocketModule();
36 
38  virtual void initialize();
39 
41  virtual void beginRun();
42  virtual void event();
43  virtual void endRun();
44  virtual void terminate();
45 
46  // Data members
47  private:
48 
50  int m_port;
51 
54 
57 
60 
62  int m_nrecv;
63 
64  };
65 
67 } // end namespace Belle2
68 
69 #endif // MODULEHELLO_H
Stream/restore DataStore objects to/from EvtMessage.
Base class for Modules.
Definition: Module.h:72
A class definition of an input module for Sequential ROOT I/O.
virtual void event()
This method is the core of the module.
DataStoreStreamer * m_streamer
DataStoreStreamer.
virtual void initialize()
Module functions to be called from main process.
virtual void beginRun()
Module functions to be called from event process.
int m_port
Receiver Port.
virtual void terminate()
This method is called at the end of the event processing.
virtual void endRun()
This method is called if the current run ends.
int m_nrecv
No. of sent events.
RxSocketModule()
Constructor / Destructor.
int m_compressionLevel
Compression Level.
EvtSocketRecv * m_recv
Reciever Socket.
Abstract base class for different kinds of events.