9#include "daq/rfarm/event/RawRevSock2Rb.h"
10#include "daq/dataflow/REvtSocket.h"
22 m_evtbuf =
new char[MAXEVTSIZE];
23 m_flow =
new RFFlowStat((
char*)shmname.c_str(),
id, m_rbuf);
24 m_buf =
new int[MAXBUFSIZE];
28RawRevSock2Rb::~RawRevSock2Rb(
void)
37 int bufsize = m_sock->get_wordbuf(m_buf, MAXBUFSIZE);
42 m_flow->log(bufsize * 4);
47 stat = m_rbuf->
insq(m_buf, bufsize);
57 return m_sock->reconnect(ntimes);
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.
RawRevSock2Rb(std::string rbuf, std::string src, int port, std::string shmname, int id)
Constuctor and Destructor.
int ReceiveEvent(void)
Event function.
int Reconnect(int ntry)
Reconnect.
Abstract base class for different kinds of events.