$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #include "otsdaq-core/NetworkUtilities/UDPDataStreamerBase.h" 00002 #include "otsdaq-core/Macros/CoutMacros.h" 00003 00004 #include <iostream> 00005 00006 using namespace ots; 00007 00008 // NOTE: if you want to inherit from this one you MUST initialize 00009 // the Socket Constructor that is commented out here in your class 00010 //======================================================================================================================== 00011 UDPDataStreamerBase::UDPDataStreamerBase(std::string IPAddress, 00012 unsigned int port, 00013 std::string toIPAddress, 00014 unsigned int toPort) 00015 : TransmitterSocket(IPAddress, port), streamToSocket_(toIPAddress, toPort) 00016 { 00017 __COUT__ << "IPAddress " << IPAddress << std::endl; 00018 __COUT__ << "port " << port << std::endl; 00019 __COUT__ << "toIPAddress " << toIPAddress << std::endl; 00020 __COUT__ << "toPort " << toPort << std::endl; 00021 __COUT__ << std::endl; 00022 __COUT__ << std::endl; 00023 __COUT__ << std::endl; 00024 __COUT__ << std::endl; 00025 __COUT__ << std::endl; 00026 00027 Socket::initialize(); 00028 __COUT__ << "done!" << std::endl; 00029 } 00030 00031 //======================================================================================================================== 00032 UDPDataStreamerBase::~UDPDataStreamerBase(void) {}