00001 #ifndef _ots_TCPDataStreamerBase_h_
00002 #define _ots_TCPDataStreamerBase_h_
00003
00004 #include <string>
00005 #include "otsdaq-core/NetworkUtilities/TCPSocket.h"
00006
00007 namespace ots
00008 {
00009 class TCPDataStreamerBase : public TCPSocket
00010 {
00011 public:
00012 TCPDataStreamerBase(unsigned int port);
00013 virtual ~TCPDataStreamerBase(void);
00014
00015 int send(const std::string& buffer) { return TCPSocket::send(buffer); }
00016 int send(const std::vector<uint32_t>& buffer) { return TCPSocket::send(buffer); }
00017 int send(const std::vector<uint16_t>& buffer) { return TCPSocket::send(buffer); }
00018 };
00019
00020 }
00021
00022 #endif