otsdaq  v2_00_00
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 
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