From 874ff7853e30ff22c556a2c4cbf4046423c7be86 Mon Sep 17 00:00:00 2001 From: azw Date: Mon, 8 May 2023 03:07:30 +0000 Subject: [PATCH] 1 --- f8/protoutils.cc | 2 ++ f8/protoutils.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/f8/protoutils.cc b/f8/protoutils.cc index 66f447e..8f354ea 100644 --- a/f8/protoutils.cc +++ b/f8/protoutils.cc @@ -92,6 +92,7 @@ namespace f8 return sizeof(PackHead) + packlen; } + #ifdef USE_ASIO int Net_SendMsg(a8::AsioTcpClient* tcp_client, unsigned seqid, unsigned short msgid, const ::google::protobuf::Message& msg) { @@ -109,6 +110,7 @@ namespace f8 free(buff); return sizeof(PackHead) + packlen; } + #endif int Net_SendBigMsg(a8::TcpClient* tcp_client, unsigned seqid, unsigned short msgid, ::google::protobuf::Message& msg) diff --git a/f8/protoutils.h b/f8/protoutils.h index ff51951..9707aa2 100644 --- a/f8/protoutils.h +++ b/f8/protoutils.h @@ -89,8 +89,10 @@ namespace f8 void Net_PackMsg(unsigned short msgid, ::google::protobuf::Message& msg, std::string& out); int Net_SendMsg(a8::TcpClient* tcp_client, unsigned int seqid, unsigned short msgid, const ::google::protobuf::Message& msg); + #if USE_ASIO int Net_SendMsg(a8::AsioTcpClient* tcp_client, unsigned int seqid, unsigned short msgid, const ::google::protobuf::Message& msg); + #endif int Net_SendBigMsg(a8::TcpClient* tcp_client, unsigned int seqid, unsigned short msgid, ::google::protobuf::Message& msg); int Net_SendMsg(a8::TcpClient* tcp_client, unsigned int seqid, unsigned short msgid, @@ -106,8 +108,10 @@ namespace f8 int Net_SendProxyCMsg(a8::TcpClient* tcp_client, unsigned short socket_handle, unsigned short msgid, ::google::protobuf::Message& msg); + #ifdef USE_ASIO int Net_SendProxyCMsg(a8::AsioTcpClient* tcp_client, unsigned short socket_handle, unsigned short msgid, ::google::protobuf::Message& msg); + #endif int Net_SendProxyMsg(a8::TcpListener* tcp_tlistener, int socket_handle, unsigned int seqid, unsigned short error_code,