otsdaq  v2_05_02_indev
ots::TCPClient Class Reference
Inheritance diagram for ots::TCPClient:
ots::TCPTransceiverSocket ots::TCPClientBase ots::TCPReceiverSocket ots::TCPTransmitterSocket ots::TCPSocket ots::TCPSocket ots::TCPSocket

Public Member Functions

 TCPClient (const std::string &serverIP, int serverPort)
 
- Public Member Functions inherited from ots::TCPTransceiverSocket
 TCPTransceiverSocket (int socketId=invalidSocketId)
 
 TCPTransceiverSocket (TCPTransceiverSocket const &)=delete
 
 TCPTransceiverSocket (TCPTransceiverSocket &&theTCPTransceiverSocket)=default
 
std::string sendAndReceivePacket (const std::string &sendBuffer)
 
std::string sendAndReceive (const std::string &sendBuffer)
 
- Public Member Functions inherited from ots::TCPReceiverSocket
 TCPReceiverSocket (int socketId=invalidSocketId)
 
 TCPReceiverSocket (TCPReceiverSocket &&theTCPReceiverSocket)=default
 
template<class T >
receive (void)
 
std::string receivePacket ()
 
void setReceiveTimeout (unsigned int timeoutSeconds, unsigned int timeoutMicroSeconds)
 
- Public Member Functions inherited from ots::TCPSocket
 TCPSocket (int socketId=invalidSocketId)
 
 TCPSocket (TCPSocket &&move)
 
TCPSocketoperator= (TCPSocket &&move)
 
void swap (TCPSocket &other)
 
 TCPSocket (TCPSocket const &)=delete
 
TCPSocketoperator= (TCPSocket const &)=delete
 
int getSocketId (void) const
 
void open (void)
 
void close (void)
 
void sendClose (void)
 
- Public Member Functions inherited from ots::TCPTransmitterSocket
 TCPTransmitterSocket (int socketId=invalidSocketId)
 
 TCPTransmitterSocket (TCPTransmitterSocket &&theTCPTransmitterSocket)=default
 
void send (char const *buffer, std::size_t size)
 
void send (const std::string &buffer)
 
void send (const std::vector< char > &buffer)
 
void send (const std::vector< uint16_t > &buffer)
 
template<typename T >
void send (const std::vector< T > &buffer)
 
void sendPacket (char const *buffer, std::size_t size)
 
void sendPacket (const std::string &buffer)
 
void setSendTimeout (unsigned int timeoutSeconds, unsigned int timeoutMicroSeconds)
 
- Public Member Functions inherited from ots::TCPClientBase
 TCPClientBase (const std::string &serverIP, int serverPort)
 
bool connect (int retry=-1, unsigned int sleepMilliSeconds=1000)
 
bool disconnect (void)
 

Additional Inherited Members

- Static Protected Attributes inherited from ots::TCPSocket
static constexpr int invalidSocketId = -1
 

Detailed Description

Definition at line 10 of file TCPClient.h.


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