otsdaq  v2_01_00
ots::TCPDataStreamerBase Class Reference
Inheritance diagram for ots::TCPDataStreamerBase:
ots::TCPSocket ots::TCPDataStreamerConsumer

Public Member Functions

 TCPDataStreamerBase (unsigned int port)
 
int send (const std::string &buffer)
 
int send (const std::vector< uint32_t > &buffer)
 
- 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 ()
 
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)
 

Additional Inherited Members

- 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 10 of file TCPDataStreamerBase.h.


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