9 #include "daq/rfarm/event/RevSock2Rb.h"
16 RevSock2Rb::RevSock2Rb(
string rbuf,
string src,
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 RevSock2Rb::~RevSock2Rb(
void)
32 int RevSock2Rb::ReceiveEvent(
void)
40 if (msg->
type() == MSG_TERMINATE) {
45 m_flow->log(msg->
size());
59 int RevSock2Rb::Reconnect(
int ntimes)
61 return (m_sock->sock())->reconnect(ntimes);
Class to manage streamed object.
int paddedSize() const
Same as size(), but as size of an integer array.
ERecordType type() const
Get record type.
char * buffer()
Get buffer address.
int size() const
Get size of message including headers.
Class to manage a Ring Buffer placed in an IPC shared memory.
Abstract base class for different kinds of events.