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

@@ -8,7 +8,7 @@ namespace SRT {
using namespace mediakit;
SrtSession::SrtSession(const Socket::Ptr &sock)
: UdpSession(sock) {
: Session(sock) {
socklen_t addr_len = sizeof(_peer_addr);
memset(&_peer_addr, 0, addr_len);
// TraceL<<"before addr len "<<addr_len;

View File

@@ -8,7 +8,7 @@ namespace SRT {
using namespace toolkit;
class SrtSession : public UdpSession {
class SrtSession : public Session {
public:
SrtSession(const Socket::Ptr &sock);
~SrtSession() override;