tdaq-develop-2025-02-12
UDPDataStreamerBase.cc
1 #include "otsdaq/NetworkUtilities/UDPDataStreamerBase.h"
2 #include "otsdaq/Macros/CoutMacros.h"
3 
4 #include <iostream>
5 
6 using namespace ots;
7 
10 //==============================================================================
12  unsigned int port,
13  std::string toIPAddress,
14  unsigned int toPort)
15  : TransmitterSocket(IPAddress, port), streamToSocket_(toIPAddress, toPort)
16 {
17  __COUT__ << "IPAddress " << IPAddress << std::endl;
18  __COUT__ << "port " << port << std::endl;
19  __COUT__ << "toIPAddress " << toIPAddress << std::endl;
20  __COUT__ << "toPort " << toPort << std::endl;
21  __COUT__ << std::endl;
22  __COUT__ << std::endl;
23  __COUT__ << std::endl;
24  __COUT__ << std::endl;
25  __COUT__ << std::endl;
26 
27  Socket::initialize();
28  __COUT__ << "done!" << std::endl;
29 }
30 
31 //==============================================================================
32 UDPDataStreamerBase::~UDPDataStreamerBase(void) {}
UDPDataStreamerBase(std::string IPAddress, unsigned int port, std::string toIPAddress, unsigned int toPort)