Belle II Software  release-08-01-10
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 #pragma once
9 
10 #include <string>
11 
12 #include "framework/pcore/RingBuffer.h"
13 #include "daq/dataflow/EvtSocket.h"
14 
15 #define RBUFSIZE 100000000
16 
17 namespace Belle2 {
23  class Sock2Rb {
24  public:
26  Sock2Rb(std::string rbuf, int port);
27  ~Sock2Rb(void);
28 
30  int ReceiveEvent(void);
31 
32  private:
33  RingBuffer* m_rbuf;
34  EvtSocketRecv* m_sock;
35  char* m_evtbuf;
36 
37  };
38 
40 }
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.