From 508e025cea680cea1217cca8fd347b666b31dc7a Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 29 Dec 2015 12:54:01 -0500 Subject: [PATCH] Make sure the port numbers get changed a bit, and fix some complication issues in the new backend. --- src/server/WebBackend.cpp | 24 +++++++++++------------- src/server/WebSocket.h | 2 ++ src/server/main.cpp | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/server/WebBackend.cpp b/src/server/WebBackend.cpp index ea75cd0..a54c9c1 100644 --- a/src/server/WebBackend.cpp +++ b/src/server/WebBackend.cpp @@ -15,7 +15,7 @@ #define DEBUG 0 #define SCLISTDELIM QString("::::") //SysCache List Delimiter -void WebSocket::EvaluateBackendRequest(QString name, const QJsonValue args, QJsonObject *out){ +RestOutputStruct::ExitCode WebSocket::EvaluateBackendRequest(QString name, const QJsonValue args, QJsonObject *out){ //Go through and forward this request to the appropriate sub-system if(name.toLower()=="syscache"){ return EvaluateSyscacheRequest(args, out); @@ -27,16 +27,15 @@ void WebSocket::EvaluateBackendRequest(QString name, const QJsonValue args, QJso } -RestOutputStruct::ExitCode WebSocket::EvaluateSyscacheRequest(const QJsonValue in_args, QJSonObject *out){ +RestOutputStruct::ExitCode WebSocket::EvaluateSyscacheRequest(const QJsonValue in_args, QJsonObject *out){ //syscache only needs a list of sub-commands at the moment (might change later) QStringList in_req; //Parse the input arguments structure - if(args.isArray()){ in_req = JsonArrayToStringList(args.toArray()); } - else if(args.isObject()){ - QStringList keys = arg.toObject().keys(); - for(int i=0; i