mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 07:17:13 +02:00
modified to support REST receiver, still not properly working
This commit is contained in:
@ -23,6 +23,7 @@ using namespace std;
|
||||
#include "UDPInterface.h"
|
||||
#include "UDPBaseImplementation.h"
|
||||
#include "UDPStandardImplementation.h"
|
||||
#include "UDPRESTImplementation.h"
|
||||
|
||||
|
||||
|
||||
@ -35,10 +36,11 @@ UDPInterface * UDPInterface::create(string receiver_type){
|
||||
return new UDPStandardImplementation();
|
||||
}
|
||||
|
||||
#ifdef REST
|
||||
else if (receiver_type == "REST")
|
||||
//#ifdef REST
|
||||
else if (receiver_type == "REST"){
|
||||
return new UDPRESTImplementation();
|
||||
#endif
|
||||
}
|
||||
//#endif
|
||||
else{
|
||||
FILE_LOG(logWARNING) << "[ERROR] UDP interface not supported, using standard implementation";
|
||||
return new UDPBaseImplementation();
|
||||
|
Reference in New Issue
Block a user