|
|
| TCPDataListenerProducer (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, const ConfigurationTree &theXDAQContextConfigTree, const std::string &configurationPath) |
| |
|
virtual void | startProcessingData (std::string runNumber) override |
| |
|
virtual void | stopProcessingData (void) override |
| |
| std::map< std::string, std::string > | getExtraStatus (void) const override |
| |
|
| DataProducer (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, unsigned int bufferSize=100) |
| |
|
virtual void | configure (void) |
| |
|
| DataProducerBase (const std::string &supervisorApplicationUID, const std::string &bufferUID, const std::string &processorUID, unsigned int bufferSize=100) |
| |
|
virtual void | registerToBuffer (void) |
| | mirror DataConsumer::registerToBuffer
|
| |
|
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 |
| |
|
| DataProcessor (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID) |
| |
|
virtual void | pauseProcessingData (void) |
| |
|
virtual void | resumeProcessingData (void) |
| |
|
const std::string & | getProcessorID (void) const |
| | Getters.
|
| |
|
void | setCircularBuffer (CircularBufferBase *circularBuffer) |
| |
| uint64_t | getStatPackets (void) const |
| |
|
uint64_t | getStatBytes (void) const |
| |
|
uint64_t | getStatErrors (void) const |
| |
|
uint64_t | getStatBusyNanos (void) const |
| |
|
| WorkLoop (const std::string &name) |
| |
|
void | startWorkLoop (void) |
| |
|
bool | stopWorkLoop (void) |
| |
|
bool | isActive (void) const |
| |
|
| Configurable (const ConfigurationTree &theXDAQContextConfigTree, const std::string &theConfigurationPath) |
| |
|
ConfigurationTree | getSelfNode () const |
| |
|
const ConfigurationManager * | getConfigurationManager () const |
| |
|
const std::string & | getContextUID () const |
| |
|
const std::string & | getApplicationUID () const |
| |
|
unsigned int | getApplicationLID () const |
| |
|
std::string | getContextAddress () const |
| |
|
unsigned int | getContextPort () const |
| |
|
| TCPListenServer (unsigned int serverPort, unsigned int maxNumberOfClients=-1) |
| |
| template<class T > |
| T | receive () |
| |
|
std::string | receivePacket () |
| | Length-prefixed packet from a ready client. Same timeout/throw semantics.
|
| |
|
| TCPServerBase (unsigned int serverPort, unsigned int maxNumberOfClients=0) |
| | Means as many unsigned allows.
|
| |
|
void | startAccept (void) |
| |
|
void | shutdownAccept (void) |
| |
|
void | broadcastPacket (const char *message, std::size_t length) |
| |
|
void | broadcastPacket (const std::string &message) |
| |
|
void | broadcast (const char *message, std::size_t length) |
| |
|
void | broadcast (const std::string &message) |
| |
|
void | broadcast (const std::vector< char > &message) |
| |
|
void | broadcast (const std::vector< uint16_t > &message) |
| |
|
| TCPSocket (int socketId=invalidSocketId) |
| | Designed to be a base class not used used directly.
|
| |
|
| TCPSocket (TCPSocket &&move) |
| | Moveable but not Copyable.
|
| |
|
TCPSocket & | operator= (TCPSocket &&move) |
| |
|
void | swap (TCPSocket &other) |
| |
|
| TCPSocket (TCPSocket const &)=delete |
| | Explicitly deleting copy constructor.
|
| |
|
TCPSocket & | operator= (TCPSocket const &)=delete |
| |
|
int | getSocketId (void) const |
| |
|
void | open (void) |
| |
|
void | close (void) |
| |
|
void | sendClose (void) |
| |
|
|
bool | workLoopThread (toolbox::task::WorkLoop *workLoop) override |
| | bool TCPDataListenerProducer::getNextFragment(void)
|
| |
|
void | slowWrite (void) |
| |
|
void | fastWrite (void) |
| |
| void | sampleSocketBacklog (void) |
| | work-loop thread only More...
|
| |
|
void | countPacket (uint64_t bytes) |
| |
|
void | countError (void) |
| |
|
void | countBusyNanos (uint64_t nanos) |
| |
|
const std::string & | getWorkLoopName (void) const |
| | Getters.
|
| |
|
void | acceptConnections () override |
| |
| TCPReceiverSocket * | waitForReadableClient (std::chrono::milliseconds timeout) |
| |
|
void | closeClientSocket (int socket) |
| |
|
template<class T > |
| T * | acceptClient (bool blocking=true) |
| |
|
void | removeClient (int socketId) |
| | Drop a client whose peer has gone away (no shutdown handshake, just close).
|
| |
|
std::vector< int > | getClientSocketIds (void) const |
| | Snapshot of connected client socket ids, safe to call from any thread.
|
| |
|
void | pingActiveClients (void) |
| |
|
bool | getAccept () |
| |
Definition at line 18 of file TCPDataListenerProducer.h.