TcpSession/UdpSession统一为Session类

This commit is contained in:
ziyue
2022-11-19 09:33:10 +08:00
parent 47530ce830
commit 68948288e0
24 changed files with 93 additions and 93 deletions

View File

@@ -24,7 +24,7 @@ static onceToken s_token([]() {
REGIST_CMD(media);
}, nullptr);
ShellSession::ShellSession(const Socket::Ptr &_sock) : TcpSession(_sock) {
ShellSession::ShellSession(const Socket::Ptr &_sock) : Session(_sock) {
DebugP(this);
pleaseInputUser();
}

View File

@@ -14,11 +14,11 @@
#include <functional>
#include "Common/config.h"
#include "Util/TimeTicker.h"
#include "Network/TcpSession.h"
#include "Network/Session.h"
namespace mediakit {
class ShellSession: public toolkit::TcpSession {
class ShellSession: public toolkit::Session {
public:
ShellSession(const toolkit::Socket::Ptr &_sock);
virtual ~ShellSession();