Belle II Software  release-06-01-15
Rb2Sock.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 Rb2Sock {
23  public:
25  Rb2Sock(std::string rbuf, std::string dest, int port);
26  ~Rb2Sock(void);
27 
29  int SendEvent(void);
30 
31  private:
32  RingBuffer* m_rbuf;
33  EvtSocketSend* m_sock;
34  char* m_evtbuf;
35 
36  };
37 
39 }
int SendEvent(void)
Event function.
Definition: Rb2Sock.cc:31
Rb2Sock(std::string rbuf, std::string dest, int port)
Constuctor and Destructor.
Definition: Rb2Sock.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.