9 #include "daq/rfarm/event/RawRevRb2Sock.h"
14 RawRevRb2Sock::RawRevRb2Sock(
string rbuf,
int port,
string shmname,
int id)
19 m_evtbuf =
new int[MAXEVTSIZE];
20 m_flow =
new RFFlowStat((
char*)shmname.c_str(),
id, m_rbuf);
25 RawRevRb2Sock::~RawRevRb2Sock(
void)
31 int RawRevRb2Sock::SendEvent(
void)
35 while ((size = m_rbuf->remq(m_evtbuf)) == 0) {
40 m_flow->log(size * 4);
42 int is = m_sock->put_wordbuf(m_evtbuf, size);
47 int RawRevRb2Sock::Reconnect(
void)
49 int port = m_sock->port();
Class to manage a Ring Buffer placed in an IPC shared memory.
Abstract base class for different kinds of events.