diff --git a/servant/servant/AppProtocol.h b/servant/servant/AppProtocol.h index dbe3f3b..94f5eb3 100644 --- a/servant/servant/AppProtocol.h +++ b/servant/servant/AppProtocol.h @@ -563,6 +563,16 @@ public: return TC_NetWorkBuffer::PACKET_FULL; } + /** + * tars各种协议响应包解析 + * @param recvBuffer + * @param done + */ + static TC_NetWorkBuffer::PACKET_TYPE totalResponse(TC_NetWorkBuffer &in, ResponsePacket &done) + { + return totalResponseLen(in, done); + } + template static TC_NetWorkBuffer::PACKET_TYPE totalResponseLen(TC_NetWorkBuffer &in, ResponsePacket &rsp) {