9 #include "daq/rfarm/event/RevRb2Sock.h"
16 RevRb2Sock::RevRb2Sock(
string rbuf,
int port,
string shmname,
int id)
21 m_evtbuf =
new char[MAXEVTSIZE];
22 m_flow =
new RFFlowStat((
char*)shmname.c_str(),
id, m_rbuf);
26 RevRb2Sock::~RevRb2Sock(
void)
32 int RevRb2Sock::SendEvent(
void)
36 while ((size = m_rbuf->remq((
int*)m_evtbuf)) == 0) {
41 m_flow->log(size * 4);
45 if (msg->
type() == MSG_TERMINATE) {
46 printf(
"EoF found. Exitting.....\n");
51 int is = m_sock->send(msg);
Class to manage streamed object.
ERecordType type() const
Get record type.
Class to manage a Ring Buffer placed in an IPC shared memory.
Abstract base class for different kinds of events.