This commit is contained in:
aozhiwei 2018-08-15 10:50:45 +08:00
parent a856bfa405
commit dcc94042b0
3 changed files with 8 additions and 2 deletions

View File

@ -72,7 +72,7 @@ void TargetConn::ForwardClientMsg(MsgHdr& hdr)
head->msgid = hdr.msgid;
head->seqid = hdr.seqid;
head->magic_code = MAGIC_CODE;
#if 1
#if 0
head->rpc_error_code = 0;
#endif
head->socket_handle = hdr.socket_handle;

View File

@ -1,5 +1,7 @@
#pragma once
#include "protoutils.h"
namespace a8
{
class TcpClient;
@ -27,7 +29,11 @@ class TargetConn
void SendMsg(T& msg)
{
static int msgid = ::Net_GetMessageId(msg);
#if 1
Net_SendProxyCMsg(tcp_client_, msgid, msg);
#else
Net_SendMsg(tcp_client_, 0, msgid, msg);
#endif
}
void ForwardClientMsg(MsgHdr& hdr);

@ -1 +1 @@
Subproject commit 5b0b534ba49ef1b25a334d60ec3f039c46231901
Subproject commit e3441de0e0010e4b4f0f9d826ce7af50688c8ab5