1 #ifndef _ots_TCPTransmitterSocket_h_
2 #define _ots_TCPTransmitterSocket_h_
4 #include "otsdaq/NetworkUtilities/TCPSocket.h"
22 void send(
char const* buffer, std::size_t size,
bool forceEmptyPacket =
false);
23 void send(
const std::string& buffer);
24 void send(
const std::vector<char>& buffer);
25 void send(
const std::vector<uint16_t>& buffer);
28 void send(
const std::vector<T>& buffer)
30 send(
reinterpret_cast<const char*
>(&buffer.at(0)), buffer.size() *
sizeof(T));
33 void sendPacket(
char const* buffer, std::size_t size);
34 void sendPacket(
const std::string& buffer);
35 void setSendTimeout(
unsigned int timeoutSeconds,
unsigned int timeoutMicroSeconds);
A class that can write to a socket.