otsdaq  v2_05_02_indev
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 {
9 // A class that can read/write to a socket
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 }
22 #endif