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,