//#ifdef SLS_RECEIVER_UDP_FUNCTIONS /********************************************//** * @file slsReceiverUDPFunctions.cpp * @short does all the functions for a receiver, set/get parameters, start/stop etc. ***********************************************/ #include // SIGINT #include // stat #include // socket(), bind(), listen(), accept(), shut down #include // sock_addr_in, htonl, INADDR_ANY #include // exit() #include //set precision #include //munmap #include #include using namespace std; #include "UDPInterface.h" #include "UDPBaseImplementation.h" #include "moench02ModuleData.h" #include "gotthardModuleData.h" #include "gotthardShortModuleData.h" using namespace std; UDPInterface * UDPInterface::create(string receiver_type){ if (receiver_type == "standard") return new UDPBaseImplementation(); else{ cout << "[ERROR] UDP interface not supported, using standard implementation" << endl; return new UDPBaseImplementation(); } } //#endif