From 223371ab5d791a7d4a3c199ae5464df28b1ae816 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 27 Sep 2018 09:20:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AE=9E=E4=BE=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Http/HttpSession.h b/src/Http/HttpSession.h index 1fdd68a5..1a598bb2 100644 --- a/src/Http/HttpSession.h +++ b/src/Http/HttpSession.h @@ -308,9 +308,17 @@ private: */ class EchoSession : public TcpSession { public: - EchoSession(const std::shared_ptr &pTh, const Socket::Ptr &pSock) : TcpSession(pTh,pSock){}; - virtual ~EchoSession(){}; + EchoSession(const std::shared_ptr &pTh, const Socket::Ptr &pSock) : + TcpSession(pTh,pSock){ + DebugL; + } + virtual ~EchoSession(){ + DebugL; + } + void attachServer(const TcpServer &server) override{ + DebugL << getIdentifier() << " " << TcpSession::getIdentifier(); + } void onRecv(const Buffer::Ptr &buffer) override { send(buffer); }