From 07e588ca8970bf89e7ddaad38606058f00c1cbf0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 1 Jun 2019 16:29:06 +0800 Subject: [PATCH] 1 --- cpp/protoutils.cc | 2 +- cpp/protoutils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/protoutils.cc b/cpp/protoutils.cc index f35b211..68e70a4 100644 --- a/cpp/protoutils.cc +++ b/cpp/protoutils.cc @@ -226,7 +226,7 @@ namespace f8 head->magic_code = MAGIC_CODE; head->rpc_error_code = error_code; head->socket_handle = child_socket_handle; - head->reserved = 0; + head->ext_len = packlen >> 16; msg.SerializeToArray(buff + sizeof(WSProxyPackHead_S), packlen); tcp_listener->SendClientMsg(parent_socket_handle, buff, sizeof(WSProxyPackHead_S) + packlen); diff --git a/cpp/protoutils.h b/cpp/protoutils.h index 2264d6c..3cf8459 100644 --- a/cpp/protoutils.h +++ b/cpp/protoutils.h @@ -69,7 +69,7 @@ namespace f8 unsigned short rpc_error_code; unsigned short socket_handle; - unsigned short reserved; + unsigned short ext_len; }; struct MsgHdr