9#include "daq/rfarm/event/RevRb2Sock.h"
21 m_evtbuf =
new char[MAXEVTSIZE];
22 m_flow =
new RFFlowStat((
char*)shmname.c_str(),
id, m_rbuf);
26RevRb2Sock::~RevRb2Sock(
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.
int SendEvent(void)
Event function.
RevRb2Sock(std::string rbuf, int port, std::string shmname, int id)
Constuctor and Destructor.
Class to manage a Ring Buffer placed in an IPC shared memory.
int remq(int *buf)
Pick up a buffer from the RingBuffer.
Abstract base class for different kinds of events.