mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-07 12:18:12 +08:00
webrtc单端口模式支持线程安全,支持链接迁移
This commit is contained in:
@@ -20,6 +20,8 @@ using namespace toolkit;
|
||||
|
||||
class WebRtcSession : public UdpSession {
|
||||
public:
|
||||
static EventPoller::Ptr getPoller(const Buffer::Ptr &);
|
||||
|
||||
WebRtcSession(const Socket::Ptr &sock);
|
||||
~WebRtcSession() override;
|
||||
|
||||
@@ -27,12 +29,9 @@ public:
|
||||
void onError(const SockException &err) override;
|
||||
void onManager() override;
|
||||
|
||||
private:
|
||||
std::shared_ptr<WebRtcTransport> createTransport(const string &user_name);
|
||||
|
||||
private:
|
||||
struct sockaddr _peer_addr;
|
||||
std::shared_ptr<WebRtcTransport> _transport;
|
||||
std::shared_ptr<WebRtcTransportImp> _transport;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user