otsdaq  v2_05_02_indev
ots::UDPDataListenerProducer Class Reference
Inheritance diagram for ots::UDPDataListenerProducer:
ots::DataProducer ots::Configurable ots::ReceiverSocket ots::DataProducerBase ots::WorkLoop ots::Socket ots::DataProcessor

Public Member Functions

 UDPDataListenerProducer (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)
 
ConfigurationTree getSelfNode () 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::ReceiverSocket
 ReceiverSocket (std::string IPAddress, unsigned int port=0)
 
int receive (std::string &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false)
 
int receive (std::vector< uint32_t > &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false)
 
int receive (std::string &buffer, unsigned long &fromIPAddress, unsigned short &fromPort, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false)
 
int receive (std::vector< uint32_t > &buffer, unsigned long &fromIPAddress, unsigned short &fromPort, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0, bool verbose=false)
 
- Public Member Functions inherited from ots::Socket
 Socket (const std::string &IPAddress, unsigned int port=0)
 
virtual void initialize (unsigned int socketReceiveBufferSize=defaultSocketReceiveSize_)
 
struct sockaddr_in & getSocketAddress (void)
 
const std::string & getIPAddress ()
 
uint16_t getPort ()
 

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_
 
unsigned long ipAddress_
 
unsigned short port_
 
unsigned char lastSeqId_
 
- 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_
 
- Protected Attributes inherited from ots::Socket
struct sockaddr_in socketAddress_
 
int socketNumber_
 
std::string IPAddress_
 
unsigned int requestedPort_
 

Additional Inherited Members

- Protected Types inherited from ots::Socket
enum  { maxSocketSize_ = 65536, defaultSocketReceiveSize_ = 0x10000 }
 
enum  { FirstSocketPort = 10000, LastSocketPort = 15000 }
 

Detailed Description

Definition at line 14 of file UDPDataListenerProducer.h.


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