9#include "daq/rfarm/event/RevSock2Rb.h"
21 m_evtbuf =
new char[MAXEVTSIZE];
22 m_flow =
new RFFlowStat((
char*)shmname.c_str(),
id, m_rbuf);
26RevSock2Rb::~RevSock2Rb(
void)
40 if (msg->
type() == MSG_TERMINATE) {
45 m_flow->log(msg->
size());
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.
int ReceiveEvent(void)
Event function.
int Reconnect(int ntry)
Reconnect.
RevSock2Rb(std::string rbuf, std::string src, int port, std::string shmname, int id)
Constuctor and Destructor.
Class to manage a Ring Buffer placed in an IPC shared memory.
int insq(const int *buf, int size, bool checkTx=false)
Append a buffer to the RingBuffer.
Abstract base class for different kinds of events.