diff --git a/server/imserver/IMConn.h b/server/imserver/IMConn.h index 3257e6c..a0746a6 100644 --- a/server/imserver/IMConn.h +++ b/server/imserver/IMConn.h @@ -1,6 +1,7 @@ #pragma once #include "framework/cpp/protoutils.h" +#include "framework/cpp/netmsghandler.h" namespace a8 { @@ -30,6 +31,9 @@ class IMConn { static int msgid = f8::Net_GetMessageId(msg); f8::Net_SendMsg(tcp_client_, 0, msgid, msg); + #ifdef DEBUG + f8::DumpMsgToLog(msg, "<<<<<< { static int msgid = f8::Net_GetMessageId(msg); f8::Net_SendMsg(tcp_listener_, socket_handle, 0, msgid, msg); + #ifdef DEBUG + f8::DumpMsgToLog(msg, "<<<<<< { static int msgid = f8::Net_GetMessageId(msg); f8::Net_SendProxyMsg(tcp_listener_, sockhandle, 0, 0, msgid, msg); + #ifdef DEBUG + f8::DumpMsgToLog(msg, "<<<<<< @@ -36,6 +41,9 @@ class WSListener : public a8::Singleton { static int msgid = f8::Net_GetMessageId(msg); f8::Net_SendProxyMsg(tcp_listener_, sockhandle, seqid, 0, msgid, msg); + #ifdef DEBUG + f8::DumpMsgToLog(msg, "<<<<<<>>>>>WSP "); + #endif } } @@ -390,6 +393,9 @@ void App::ProcessIMServerMsg(f8::MsgHdr& hdr) } break; } + #ifdef DEBUG + f8::DumpMsgToLog(hdr, handler, ">>>>>>IMS "); + #endif } } @@ -407,6 +413,9 @@ void App::ProcessIMConnMsg(f8::MsgHdr& hdr) } break; } + #ifdef DEBUG + f8::DumpMsgToLog(hdr, handler, ">>>>>>IMC "); + #endif } } @@ -427,6 +436,9 @@ void App::ProcessMSConnMsg(f8::MsgHdr& hdr) } break; } + #ifdef DEBUG + f8::DumpMsgToLog(hdr, handler, ">>>>>>MSC "); + #endif } } diff --git a/third_party/framework b/third_party/framework index 6a53924..6d4d042 160000 --- a/third_party/framework +++ b/third_party/framework @@ -1 +1 @@ -Subproject commit 6a5392433ccd85ffbfea9a904fde0f5bae22c155 +Subproject commit 6d4d04235b27818b29d0f83206052de90ac8afd8