modified to support REST receiver, still not properly working

This commit is contained in:
2014-09-15 16:52:53 +02:00
parent 7986746194
commit cfacc6ad6e
2 changed files with 13 additions and 4 deletions

View File

@ -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();