Added rapidjson library

Added web_interface_utils.cpp/.h to common to provide string based functions for outputting JSON
Adjusted CMake to include rapidjson library and new web_interface_utils.h/cpp to common

Currently, I have code set up hackishly for testing so do not think it is final. It is merely for demonstrating what I've done and played with.
This commit is contained in:
Chris M
2014-07-20 15:02:06 -05:00
parent 5ad7b84415
commit e442d682cd
32 changed files with 6203 additions and 7 deletions
+5
View File
@@ -99,6 +99,11 @@ bool WebInterfaceConnection::Process()
_log(WEB_INTERFACE__ERROR, "Got authentication from WebInterface when they are already authenticated.");
break;
}
case ServerOP_WIServGeneric:
{
zoneserver_list.SendPacket(pack); // Send to all zones to test
break;
}
default:
{
_log(WEB_INTERFACE__ERROR, "Unknown ServerOPcode from WebInterface 0x%04x, size %d", pack->opcode, pack->size);
+7
View File
@@ -36,6 +36,7 @@
#include "AdventureManager.h"
#include "ucs.h"
#include "queryserv.h"
#include "web_interface.h"
extern ClientList client_list;
extern GroupLFPList LFPGroupList;
@@ -46,6 +47,7 @@ extern volatile bool RunLoops;
extern AdventureManager adventure_manager;
extern UCSConnection UCSLink;
extern QueryServConnection QSLink;
extern WebInterfaceConnection WILink;
void CatchSignal(int sig_num);
ZoneServer::ZoneServer(EmuTCPConnection* itcpc)
@@ -1316,6 +1318,11 @@ bool ZoneServer::Process() {
zoneserver_list.SendPacket(pack);
break;
}
case ServerOP_WIWorldResponse:
{
WILink.SendPacket(pack);
break;
}
default:
{
zlog(WORLD__ZONE_ERR,"Unknown ServerOPcode from zone 0x%04x, size %d",pack->opcode,pack->size);