9#include "daq/rfarm/event/RawRevRb2Sock.h"
19 m_evtbuf =
new int[MAXEVTSIZE];
20 m_flow =
new RFFlowStat((
char*)shmname.c_str(),
id, m_rbuf);
25RawRevRb2Sock::~RawRevRb2Sock(
void)
35 while ((size = m_rbuf->
remq(m_evtbuf)) == 0) {
40 m_flow->log(size * 4);
42 int is = m_sock->put_wordbuf(m_evtbuf, size);
49 int port = m_sock->port();
int SendEvent(void)
Event function.
int Reconnect(void)
Reconnect.
RawRevRb2Sock(std::string rbuf, int port, std::string shmname, int id)
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.