添加挂机协议

This commit is contained in:
aozhiwei 2018-08-27 15:07:27 +08:00
parent fc1b2ec66c
commit 461fceb651
2 changed files with 1 additions and 8 deletions

View File

@ -102,9 +102,7 @@ void GCListener::ForwardTargetConnMsg(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 head->reserved = 0;
head->rpc_error_code = hdr.ip_saddr;
#endif
if (hdr.buflen > 0) { if (hdr.buflen > 0) {
memmove(buff + sizeof(PackHead), hdr.buf, hdr.buflen); memmove(buff + sizeof(PackHead), hdr.buf, hdr.buflen);
} }

View File

@ -6,11 +6,6 @@ namespace a8
class TcpListener; class TcpListener;
} }
namespace ss
{
class SS_RS_ForwardClientMsg;
}
class GCListener : public a8::Singleton<GCListener> class GCListener : public a8::Singleton<GCListener>
{ {
private: private: