otsdaq  v2_03_00
ots::TCPDataListenerProducer Class Reference
Inheritance diagram for ots::TCPDataListenerProducer:
ots::DataProducer ots::Configurable ots::TCPSocket ots::DataProducerBase ots::WorkLoop ots::DataProcessor

Public Member Functions

 TCPDataListenerProducer (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, const ConfigurationTree &theXDAQContextConfigTree, const std::string &configurationPath)
 
- Public Member Functions inherited from ots::DataProducer
 DataProducer (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, unsigned int bufferSize=100)
 
virtual void startProcessingData (std::string runNumber)
 
virtual void stopProcessingData (void)
 
- Public Member Functions inherited from ots::DataProducerBase
 DataProducerBase (const std::string &supervisorApplicationUID, const std::string &bufferUID, const std::string &processorUID, unsigned int bufferSize=100)
 
virtual void registerToBuffer (void)
 
template<class D , class H >
int attachToEmptySubBuffer (D *&data, H *&header)
 
template<class D , class H >
int setWrittenSubBuffer (void)
 
template<class D , class H >
int write (const D &buffer)
 
template<class D , class H >
int write (const D &buffer, const H &header)
 
unsigned int getBufferSize (void) const
 
- Public Member Functions inherited from ots::DataProcessor
 DataProcessor (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID)
 
virtual void pauseProcessingData (void)
 
virtual void resumeProcessingData (void)
 
const std::string & getProcessorID (void) const
 
void setCircularBuffer (CircularBufferBase *circularBuffer)
 
- Public Member Functions inherited from ots::WorkLoop
 WorkLoop (const std::string &name)
 
void startWorkLoop (void)
 
bool stopWorkLoop (void)
 
bool isActive (void) const
 
- Public Member Functions inherited from ots::Configurable
 Configurable (const ConfigurationTree &theXDAQContextConfigTree, const std::string &theConfigurationPath)
 
const ConfigurationTreegetSelfNode () const
 
const ConfigurationManagergetConfigurationManager () const
 
const std::string & getContextUID () const
 
const std::string & getApplicationUID () const
 
unsigned int getApplicationLID () const
 
std::string getContextAddress () const
 
unsigned int getContextPort () const
 
- Public Member Functions inherited from ots::TCPSocket
 TCPSocket (const std::string &senderHost, unsigned int senderPort, int receiveBufferSize=0x10000)
 
 TCPSocket (unsigned int listenPort, int sendBufferSize=0x10000)
 
void connect (double tmo_s=10.0)
 
int send (const uint8_t *data, size_t size)
 
int send (const std::string &buffer)
 
int send (const std::vector< uint32_t > &buffer)
 
int send (const std::vector< uint16_t > &buffer)
 
int receive (uint8_t *buffer, unsigned int timeoutSeconds, unsigned int timeoutUSeconds)
 
int receive (std::string &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0)
 
int receive (std::vector< uint32_t > &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0)
 

Protected Member Functions

bool workLoopThread (toolbox::task::WorkLoop *workLoop)
 
void slowWrite (void)
 
void fastWrite (void)
 
- Protected Member Functions inherited from ots::WorkLoop
const std::string & getWorkLoopName (void) const
 

Protected Attributes

std::string data_
 
std::map< std::string,
std::string > 
header_
 
std::string * dataP_
 
std::map< std::string,
std::string > * 
headerP_
 
std::string ipAddress_
 
unsigned short port_
 
- Protected Attributes inherited from ots::DataProcessor
const std::string supervisorApplicationUID_
 
const std::string bufferUID_
 
const std::string processorUID_
 
CircularBufferBasetheCircularBuffer_
 
- Protected Attributes inherited from ots::WorkLoop
volatile bool continueWorkLoop_
 
- Protected Attributes inherited from ots::Configurable
const ConfigurationTree theXDAQContextConfigTree_
 
const std::string theConfigurationPath_
 
const std::string theConfigurationRecordName_
 
const ConfigurationTree selfNode_
 
- Protected Attributes inherited from ots::TCPSocket
std::string host_
 
unsigned int port_
 
int TCPSocketNumber_
 
int SendSocket_
 
bool isSender_
 
int bufferSize_
 
size_t chunkSize_
 
std::mutex socketMutex_
 

Detailed Description

Definition at line 14 of file TCPDataListenerProducer.h.


The documentation for this class was generated from the following files: