1
This commit is contained in:
parent
0b4430f909
commit
57109ef8ca
@ -3,6 +3,7 @@
|
||||
#include <a8/mutable_xobject.h>
|
||||
|
||||
#include <f8/udplog.h>
|
||||
#include <f8/msgqueue.h>
|
||||
|
||||
#include "handlermgr.h"
|
||||
|
||||
@ -77,6 +78,16 @@ void HandlerMgr::Init()
|
||||
RegisterGMMsgHandler("Ops@startService", _GMOpsStartService);
|
||||
RegisterGMMsgHandler("Ops@serverInfo", _GMOpsServerInfo);
|
||||
RegisterGMMsgHandler("Stat@getRealTimeOnline", _GMStatGetRealTimeOnline);
|
||||
f8::MsgQueue::Instance()->RegisterCallBack
|
||||
(
|
||||
IM_ExecGM,
|
||||
[] (const a8::Args& args)
|
||||
{
|
||||
int socket_handle = 0;
|
||||
std::string url;
|
||||
std::string query_str;
|
||||
unsigned long saddr = 0;
|
||||
});
|
||||
}
|
||||
|
||||
void HandlerMgr::UnInit()
|
||||
|
@ -23,12 +23,12 @@ struct HttpProxyRequest
|
||||
|
||||
static void _ProxyCallback(f8::JsonHttpRequest* request)
|
||||
{
|
||||
//#ifdef DEBUG
|
||||
#ifdef DEBUG
|
||||
f8::UdpLog::Instance()->Debug("ProxyCallbBack request:%s",
|
||||
{
|
||||
request->request.ToJsonStr()
|
||||
});
|
||||
//#endif
|
||||
#endif
|
||||
std::string seq_id = request->request.Get("seq_id");
|
||||
std::shared_ptr<HttpProxyRequest> req = HttpProxy::Instance()->GetRequest(seq_id);
|
||||
if (req) {
|
||||
|
2
third_party/f8
vendored
2
third_party/f8
vendored
@ -1 +1 @@
|
||||
Subproject commit 2d814bb9b97e2a1c8be22c5063e7dbde467168a9
|
||||
Subproject commit 6bc22929e526ec43c818f4b8a02ccc7b0c6e1361
|
Loading…
x
Reference in New Issue
Block a user