9#include "daq/rfarm/event/Rb2Sock.h"
21 m_evtbuf =
new char[MAXEVTSIZE];
25Rb2Sock::~Rb2Sock(
void)
35 while ((size = m_rbuf->
remq((
int*)m_evtbuf)) == 0) {
43 if (msg->
type() == MSG_TERMINATE) {
44 printf(
"EoF found. Exitting.....\n");
49 int is = m_sock->send(msg);
Class to manage streamed object.
ERecordType type() const
Get record type.
int SendEvent(void)
Event function.
Rb2Sock(std::string rbuf, std::string dest, int port)
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.