9 #include <daq/dataflow/modules/TxSocketModule.h>
11 #include <framework/datastore/DataStore.h>
12 #include <framework/pcore/EvtMessage.h>
29 setDescription(
"Encode DataStore into RingBuffer");
32 addParam(
"DestHostName", m_dest,
"Destination host",
string(
"localhost"));
33 addParam(
"DestPort", m_port,
"Destination port", 1111);
36 m_compressionLevel = 0;
39 B2INFO(
"Tx: Constructor done.");
44 TxSocketModule::~TxSocketModule()
48 void TxSocketModule::initialize()
55 B2INFO(
"Tx initialized.");
59 void TxSocketModule::beginRun()
61 B2INFO(
"beginRun called.");
65 void TxSocketModule::event()
68 EvtMessage* msg = m_streamer->streamDataStore(DataStore::c_Event);
72 B2INFO(
"Tx: objs sent in buffer. Size = " << msg->
size());
79 void TxSocketModule::endRun()
83 B2INFO(
"endRun done.");
87 void TxSocketModule::terminate()
89 B2INFO(
"terminate called");
Stream/restore DataStore objects to/from EvtMessage.
Class to manage streamed object.
int size() const
Get size of message including headers.
A class definition of an input module for Sequential ROOT I/O.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.