This commit is contained in:
azw 2023-05-08 03:07:30 +00:00
parent 8a49aa65c8
commit 874ff7853e
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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,