9 #include "daq/rfarm/event/Rb2Sock.h"
16 Rb2Sock::Rb2Sock(
string rbuf,
string dest,
int port)
21 m_evtbuf =
new char[MAXEVTSIZE];
25 Rb2Sock::~Rb2Sock(
void)
31 int Rb2Sock::SendEvent(
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.
Class to manage a Ring Buffer placed in an IPC shared memory.
Abstract base class for different kinds of events.