00001 #include "otsdaq-core/NetworkUtilities/UDPDataStreamerBase.h"
00002 #include "otsdaq-core/Macros/CoutHeaderMacros.h"
00003
00004 #include <iostream>
00005
00006 using namespace ots;
00007
00008
00009
00010
00011 UDPDataStreamerBase::UDPDataStreamerBase(std::string IPAddress, unsigned int port, std::string toIPAddress, unsigned int toPort)
00012 : TransmitterSocket (IPAddress, port)
00013 , streamToSocket_ (toIPAddress, toPort)
00014 {
00015 __COUT__ << "IPAddress " << IPAddress << std::endl;
00016 __COUT__ << "port " << port << std::endl;
00017 __COUT__ << "toIPAddress " << toIPAddress << std::endl;
00018 __COUT__ << "toPort " << toPort << std::endl;
00019 __COUT__ << std::endl;
00020 __COUT__ << std::endl;
00021 __COUT__ << std::endl;
00022 __COUT__ << std::endl;
00023 __COUT__ << std::endl;
00024
00025 Socket::initialize();
00026 __COUT__ << "done!" << std::endl;
00027 }
00028
00029
00030 UDPDataStreamerBase::~UDPDataStreamerBase(void)
00031 {
00032 }
00033