9#include <daq/dataflow/modules/TxSocketModule.h>
11#include <framework/datastore/DataStore.h>
12#include <framework/pcore/EvtMessage.h>
32 addParam(
"DestHostName",
m_dest,
"Destination host",
string(
"localhost"));
39 B2INFO(
"Tx: Constructor done.");
44TxSocketModule::~TxSocketModule()
55 B2INFO(
"Tx initialized.");
61 B2INFO(
"beginRun called.");
72 B2INFO(
"Tx: objs sent in buffer. Size = " << msg->
size());
83 B2INFO(
"endRun done.");
89 B2INFO(
"terminate called");
Stream/restore DataStore objects to/from EvtMessage.
EvtMessage * streamDataStore(bool addPersistentDurability, bool streamTransientObjects=false)
Store DataStore objects in EvtMessage.
@ c_Event
Different object in each event, all objects/arrays are invalidated after event() function has been ca...
Class to manage streamed object.
int size() const
Get size of message including headers.
void setDescription(const std::string &description)
Sets the description of the module.
DataStoreStreamer * m_streamer
DataStoreStreamer.
void initialize() override
Module functions to be called from main process.
void event() override
This method is the core of the module.
void endRun() override
This method is called if the current run ends.
EvtSocketSend * m_sock
EvtSocket.
void terminate() override
This method is called at the end of the event processing.
int m_port
Destination port.
void beginRun() override
Module functions to be called from event process.
int m_nsent
No. of sent events.
int m_compressionLevel
Compression parameter.
std::string m_dest
Destination Host.
TxSocketModule()
Constructor / Destructor.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.