ok
This commit is contained in:
parent
a856bfa405
commit
dcc94042b0
@ -72,7 +72,7 @@ void TargetConn::ForwardClientMsg(MsgHdr& hdr)
|
|||||||
head->msgid = hdr.msgid;
|
head->msgid = hdr.msgid;
|
||||||
head->seqid = hdr.seqid;
|
head->seqid = hdr.seqid;
|
||||||
head->magic_code = MAGIC_CODE;
|
head->magic_code = MAGIC_CODE;
|
||||||
#if 1
|
#if 0
|
||||||
head->rpc_error_code = 0;
|
head->rpc_error_code = 0;
|
||||||
#endif
|
#endif
|
||||||
head->socket_handle = hdr.socket_handle;
|
head->socket_handle = hdr.socket_handle;
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "protoutils.h"
|
||||||
|
|
||||||
namespace a8
|
namespace a8
|
||||||
{
|
{
|
||||||
class TcpClient;
|
class TcpClient;
|
||||||
@ -27,7 +29,11 @@ class TargetConn
|
|||||||
void SendMsg(T& msg)
|
void SendMsg(T& msg)
|
||||||
{
|
{
|
||||||
static int msgid = ::Net_GetMessageId(msg);
|
static int msgid = ::Net_GetMessageId(msg);
|
||||||
|
#if 1
|
||||||
|
Net_SendProxyCMsg(tcp_client_, msgid, msg);
|
||||||
|
#else
|
||||||
Net_SendMsg(tcp_client_, 0, msgid, msg);
|
Net_SendMsg(tcp_client_, 0, msgid, msg);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ForwardClientMsg(MsgHdr& hdr);
|
void ForwardClientMsg(MsgHdr& hdr);
|
||||||
|
2
third_party/framework
vendored
2
third_party/framework
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 5b0b534ba49ef1b25a334d60ec3f039c46231901
|
Subproject commit e3441de0e0010e4b4f0f9d826ce7af50688c8ab5
|
Loading…
x
Reference in New Issue
Block a user