tdaq-develop-2025-02-12
|
A class that can write to a socket. More...
#include <otsdaq/NetworkUtilities/TCPTransmitterSocket.h>
Public Member Functions | |
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) |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
static constexpr int | invalidSocketId = -1 |
A class that can write to a socket.
Definition at line 14 of file TCPTransmitterSocket.h.