Belle II Software  release-06-01-15
RevRb2Sock.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 #include <string>
10 
11 #include "framework/pcore/RingBuffer.h"
12 #include "daq/dataflow/REvtSocket.h"
13 #include "daq/rfarm/manager/RFFlowStat.h"
14 
15 #define RBUFSIZE 100000000
16 
17 namespace Belle2 {
23  class RevRb2Sock {
24  public:
26  RevRb2Sock(std::string rbuf, int port, std::string shmname, int id);
27  ~RevRb2Sock(void);
28 
30  int SendEvent(void);
31 
32  private:
33  RingBuffer* m_rbuf;
34  REvtSocketSend* m_sock;
35  RFFlowStat* m_flow;
36  char* m_evtbuf;
37 
38  };
39 
41 }
int SendEvent(void)
Event function.
Definition: RevRb2Sock.cc:32
RevRb2Sock(std::string rbuf, int port, std::string shmname, int id)
Constuctor and Destructor.
Definition: RevRb2Sock.cc:16
Class to manage a Ring Buffer placed in an IPC shared memory.
Definition: RingBuffer.h:39
Abstract base class for different kinds of events.