otsdaq
v2_05_02_indev
Return to top level
Main Page
Classes
Files
File List
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
10
class
TCPTransceiverSocket
:
public
TCPReceiverSocket
,
public
TCPTransmitterSocket
11
{
12
public
:
13
TCPTransceiverSocket
(
int
socketId = invalidSocketId);
14
virtual
~
TCPTransceiverSocket
(
void
);
15
TCPTransceiverSocket
(
TCPTransceiverSocket
const
&) =
delete
;
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
ots::TCPTransmitterSocket
Definition:
TCPTransmitterSocket.h:12
ots::TCPReceiverSocket
Definition:
TCPReceiverSocket.h:10
ots::TCPTransceiverSocket
Definition:
TCPTransceiverSocket.h:10
otsdaq
otsdaq
NetworkUtilities
TCPTransceiverSocket.h
Generated on Wed Apr 29 2020 18:41:48 for otsdaq by
1.8.5