tdaq-develop-2025-02-12
|
A class that can read/write to a socket. More...
#include <otsdaq/NetworkUtilities/TCPTransceiverSocket.h>
Public Member Functions | |
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) |
![]() | |
TCPReceiverSocket (int socketId=invalidSocketId) | |
TCPReceiverSocket (TCPReceiverSocket &&theTCPReceiverSocket)=default | |
template<class T > | |
T | receive (void) |
std::string | receivePacket (std::chrono::milliseconds timeout=std::chrono::milliseconds(5)) |
void | setReceiveTimeout (unsigned int timeoutSeconds, unsigned int timeoutMicroSeconds) |
![]() | |
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) |
![]() | |
TCPTransmitterSocket (int socketId=invalidSocketId) | |
TCPTransmitterSocket (TCPTransmitterSocket &&theTCPTransmitterSocket)=default | |
void | send (char const *buffer, std::size_t size, bool forceEmptyPacket=false) |
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) |
Additional Inherited Members | |
![]() | |
static constexpr int | invalidSocketId = -1 |
A class that can read/write to a socket.
Definition at line 10 of file TCPTransceiverSocket.h.