Belle II Software  release-06-00-14
Sock2Rb.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/EvtSocket.h"
13 
14 #define RBUFSIZE 100000000
15 
16 namespace Belle2 {
22  class Sock2Rb {
23  public:
25  Sock2Rb(std::string rbuf, int port);
26  ~Sock2Rb(void);
27 
29  int ReceiveEvent(void);
30 
31  private:
32  RingBuffer* m_rbuf;
33  EvtSocketRecv* m_sock;
34  char* m_evtbuf;
35 
36  };
37 
39 }
Class to manage a Ring Buffer placed in an IPC shared memory.
Definition: RingBuffer.h:39
int ReceiveEvent(void)
Event function.
Definition: Sock2Rb.cc:31
Sock2Rb(std::string rbuf, int port)
Constuctor and Destructor.
Definition: Sock2Rb.cc:16
Abstract base class for different kinds of events.