tdaq-develop-2025-02-12
TCPTransceiverSocket.h
1 #ifndef _TCPTransceiverSocket_h_
2 #define _TCPTransceiverSocket_h_
3 
4 #include "otsdaq/NetworkUtilities/TCPReceiverSocket.h"
5 #include "otsdaq/NetworkUtilities/TCPTransmitterSocket.h"
6 
7 namespace ots
8 {
11 {
12  public:
13  TCPTransceiverSocket(int socketId = invalidSocketId);
14  virtual ~TCPTransceiverSocket(void);
16  TCPTransceiverSocket(TCPTransceiverSocket&& theTCPTransceiverSocket) = default;
17 
18  std::string sendAndReceivePacket(const std::string& sendBuffer);
19  std::string sendAndReceive(const std::string& sendBuffer);
20 };
21 } // namespace ots
22 #endif
A class that can read/write to a socket.
A class that can write to a socket.