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