Belle II Software development
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#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
17namespace Belle2 {
23 class Rb2Sock {
24 public:
26 Rb2Sock(std::string rbuf, std::string dest, int port);
27 ~Rb2Sock(void);
28
30 int SendEvent(void);
31
32 private:
33 RingBuffer* m_rbuf;
34 EvtSocketSend* m_sock;
35 char* m_evtbuf;
36
37 };
38
40}
int SendEvent(void)
Event function.
Definition: Rb2Sock.cc:31
Class to manage a Ring Buffer placed in an IPC shared memory.
Definition: RingBuffer.h:39
Abstract base class for different kinds of events.