mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
Session类构造析构跟踪日志统一在底层网络框架打印
This commit is contained in:
@@ -16,9 +16,7 @@ SrtSession::SrtSession(const Socket::Ptr &sock)
|
||||
// TraceL<<"after addr len "<<addr_len<<" family "<<_peer_addr.ss_family;
|
||||
}
|
||||
|
||||
SrtSession::~SrtSession() {
|
||||
InfoP(this);
|
||||
}
|
||||
SrtSession::~SrtSession() = default;
|
||||
|
||||
EventPoller::Ptr SrtSession::queryPoller(const Buffer::Ptr &buffer) {
|
||||
uint8_t *data = (uint8_t *)buffer->data();
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
|
||||
namespace SRT {
|
||||
SrtTransportImp::SrtTransportImp(const EventPoller::Ptr &poller)
|
||||
: SrtTransport(poller) {}
|
||||
: SrtTransport(poller) {
|
||||
}
|
||||
|
||||
SrtTransportImp::~SrtTransportImp() {
|
||||
InfoP(this);
|
||||
uint64_t duration = _alive_ticker.createdTime() / 1000;
|
||||
WarnP(this) << (_is_pusher ? "srt 推流器(" : "srt 播放器(") << _media_info.shortUrl() << ")断开,耗时(s):" << duration;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user