otsdaq
v1_01_04
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
src
otsdaq-core
NetworkUtilities
TCPDataStreamerBase.h
1
#ifndef _ots_TCPDataStreamerBase_h_
2
#define _ots_TCPDataStreamerBase_h_
3
4
#include "otsdaq-core/NetworkUtilities/TCPSocket.h"
// Make sure this is always first because <sys/types.h> (defined in Socket.h) must be first
5
#include <string>
6
7
namespace
ots
8
{
9
10
class
TCPDataStreamerBase
:
public
TCPSocket
11
{
12
public
:
13
TCPDataStreamerBase
(
unsigned
int
port);
14
virtual
~
TCPDataStreamerBase
(
void
);
15
16
int
send(
const
std::string& buffer) {
return
TCPSocket::send(buffer); }
17
int
send(
const
std::vector<uint32_t>& buffer) {
return
TCPSocket::send(buffer); }
18
};
19
20
}
21
22
#endif
ots::TCPDataStreamerBase
Definition:
TCPDataStreamerBase.h:10
ots::TCPSocket
Definition:
TCPSocket.h:18
Generated on Mon Dec 4 2017 10:04:04 for otsdaq by
1.8.5