otsdaq  v2_04_01
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 {
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