otsdaq
v2_04_02
Return to top level
Main Page
Namespaces
Classes
Files
File List
TCPServer.h
1
#ifndef _ots_TCPServer_h_
2
#define _ots_TCPServer_h_
3
4
#include <string>
5
#include "otsdaq/NetworkUtilities/TCPServerBase.h"
6
7
namespace
ots
8
{
9
class
TCPTransceiverSocket;
10
11
class
TCPServer
:
public
TCPServerBase
12
{
13
public
:
14
TCPServer
(
int
serverPort,
unsigned
int
maxNumberOfClients = -1);
15
virtual
~
TCPServer
(
void
);
16
17
virtual
std::string interpretMessage(
const
std::string& buffer) = 0;
18
19
private
:
20
void
acceptConnections(
void
)
override
;
21
void
connectClient(
TCPTransceiverSocket
* clientSocket);
22
};
23
}
24
25
#endif
ots::TCPServer
Definition:
TCPServer.h:11
ots::TCPTransceiverSocket
Definition:
TCPTransceiverSocket.h:10
ots::TCPServerBase
Definition:
TCPServerBase.h:12
src
otsdaq
NetworkUtilities
TCPServer.h
Generated on Wed Oct 2 2019 09:36:55 for otsdaq by
1.8.5