Belle II Software
development
RawRevSock2Rb.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/RSocketLib.h"
14
#include "daq/rfarm/manager/RFFlowStat.h"
15
16
#define MAXBUFSIZE 20000000
17
#define RBUFSIZE 100000000
18
19
class
RawRevSock2Rb
{
20
public
:
22
RawRevSock2Rb
(
const
std::string& rbuf,
const
std::string& src,
int
port, std::string shmname,
int
id
);
23
~RawRevSock2Rb
(
void
);
25
RawRevSock2Rb
(
const
RawRevSock2Rb
&) =
delete
;
26
28
RawRevSock2Rb
&
operator=
(
const
RawRevSock2Rb
&) =
delete
;
29
31
int
ReceiveEvent
(
void
);
32
34
int
Reconnect
(
int
ntry);
35
36
private
:
37
Belle2::RingBuffer
* m_rbuf;
38
Belle2::RSocketRecv
* m_sock;
39
Belle2::RFFlowStat
* m_flow;
40
char
* m_evtbuf;
41
int
* m_buf;
42
43
};
44
Belle2::RFFlowStat
Definition
RFFlowStat.h:27
Belle2::RSocketRecv
Definition
RSocketLib.h:58
Belle2::RingBuffer
Class to manage a Ring Buffer placed in an IPC shared memory.
Definition
RingBuffer.h:39
RawRevSock2Rb::ReceiveEvent
int ReceiveEvent(void)
Event function.
Definition
RawRevSock2Rb.cc:34
RawRevSock2Rb::RawRevSock2Rb
RawRevSock2Rb(const RawRevSock2Rb &)=delete
Copy constructor (disabled).
RawRevSock2Rb::operator=
RawRevSock2Rb & operator=(const RawRevSock2Rb &)=delete
Operator = (disabled).
RawRevSock2Rb::Reconnect
int Reconnect(int ntry)
Reconnect.
Definition
RawRevSock2Rb.cc:55
RawRevSock2Rb::RawRevSock2Rb
RawRevSock2Rb(const std::string &rbuf, const std::string &src, int port, std::string shmname, int id)
Constuctor and Destructor.
Definition
RawRevSock2Rb.cc:17
daq
rfarm
event
include
RawRevSock2Rb.h
Generated on Sun Nov 22 2026 03:12:21 for Belle II Software by
1.13.2