From 6210196bcda13489e2f691aa001de042ae61d9cb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 8 Jan 2020 14:38:47 +0800 Subject: [PATCH] tcpclient2 -> async tcpclient --- cpp/protoutils.cc | 4 ++-- cpp/protoutils.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);