diff --git a/cpp/protoutils.cc b/cpp/protoutils.cc index f9c8ce2..2bb059c 100644 --- a/cpp/protoutils.cc +++ b/cpp/protoutils.cc @@ -3,7 +3,7 @@ #include "framework/cpp/protoutils.h" #include -#include +#include #include #include @@ -132,7 +132,7 @@ namespace f8 return sizeof(f8::PackHeadOld) + packlen; } - int Net_SendMsg(a8::TcpClient2* tcp_client, unsigned seqid, unsigned short msgid, + int Net_SendMsg(a8::AsyncTcpClient* tcp_client, unsigned seqid, unsigned short msgid, ::google::protobuf::Message& msg) { int packlen = msg.ByteSize(); diff --git a/cpp/protoutils.h b/cpp/protoutils.h index 170c17f..aaa75f4 100644 --- a/cpp/protoutils.h +++ b/cpp/protoutils.h @@ -12,7 +12,7 @@ namespace google namespace a8 { class TcpClient; - class TcpClient2; + class AsyncTcpClient; class TcpListener; } @@ -110,7 +110,7 @@ namespace f8 unsigned short msgid, ::google::protobuf::Message& msg); int Net_SendMsgOld(a8::TcpClient* tcp_client, unsigned int seqid, unsigned short msgid, ::google::protobuf::Message& msg); - int Net_SendMsg(a8::TcpClient2* tcp_client, unsigned int seqid, + int Net_SendMsg(a8::AsyncTcpClient* tcp_client, unsigned int seqid, unsigned short msgid, ::google::protobuf::Message& msg); int Net_SendBigMsg(a8::TcpClient* tcp_client, unsigned int seqid, unsigned short msgid, ::google::protobuf::Message& msg);