mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
modified to support REST receiver, still not properly working
This commit is contained in:
parent
7986746194
commit
cfacc6ad6e
@ -15,9 +15,16 @@ CFLAGS= -g -DC_ONLY -fPIC
|
|||||||
|
|
||||||
DFLAGS= -g -DDACS_INT -DSLS_RECEIVER_UDP_FUNCTIONS
|
DFLAGS= -g -DDACS_INT -DSLS_RECEIVER_UDP_FUNCTIONS
|
||||||
|
|
||||||
INCLUDES?= -Iinclude -I../slsDetectorCalibration -I$(ASM)
|
INCLUDES?= $(INCLUDESRXR) -I include/ -I ../slsDetectorCalibration
|
||||||
|
|
||||||
|
#-Iinclude -I../slsDetectorCalibration -I$(ASM)
|
||||||
|
|
||||||
SRC_CLNT = MySocketTCP.cpp UDPInterface.cpp UDPBaseImplementation.cpp UDPStandardImplementation.cpp slsReceiverTCPIPInterface.cpp slsReceiver.cpp slsReceiverUsers.cpp utilities.cpp
|
SRC_CLNT = MySocketTCP.cpp UDPInterface.cpp UDPBaseImplementation.cpp UDPStandardImplementation.cpp slsReceiverTCPIPInterface.cpp slsReceiver.cpp slsReceiverUsers.cpp utilities.cpp
|
||||||
|
|
||||||
|
ifeq ($(REST), yes)
|
||||||
|
SRC_CLNT += UDPRESTImplementation.cpp
|
||||||
|
endif
|
||||||
|
|
||||||
MAIN_SRC = main.cpp
|
MAIN_SRC = main.cpp
|
||||||
|
|
||||||
OBJS=$(SRC_CLNT:%.cpp=$(BUILDDIR)/%.o)
|
OBJS=$(SRC_CLNT:%.cpp=$(BUILDDIR)/%.o)
|
||||||
|
@ -23,6 +23,7 @@ using namespace std;
|
|||||||
#include "UDPInterface.h"
|
#include "UDPInterface.h"
|
||||||
#include "UDPBaseImplementation.h"
|
#include "UDPBaseImplementation.h"
|
||||||
#include "UDPStandardImplementation.h"
|
#include "UDPStandardImplementation.h"
|
||||||
|
#include "UDPRESTImplementation.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -35,10 +36,11 @@ UDPInterface * UDPInterface::create(string receiver_type){
|
|||||||
return new UDPStandardImplementation();
|
return new UDPStandardImplementation();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef REST
|
//#ifdef REST
|
||||||
else if (receiver_type == "REST")
|
else if (receiver_type == "REST"){
|
||||||
return new UDPRESTImplementation();
|
return new UDPRESTImplementation();
|
||||||
#endif
|
}
|
||||||
|
//#endif
|
||||||
else{
|
else{
|
||||||
FILE_LOG(logWARNING) << "[ERROR] UDP interface not supported, using standard implementation";
|
FILE_LOG(logWARNING) << "[ERROR] UDP interface not supported, using standard implementation";
|
||||||
return new UDPBaseImplementation();
|
return new UDPBaseImplementation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user