-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSignallingClientSession.h
More file actions
38 lines (28 loc) · 1.02 KB
/
SignallingClientSession.h
File metadata and controls
38 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
class Config; // #include "Config.h"
#include "RtspSession/ServerSession.h"
class SessionsSharedData; // #include "SessionsSharedData.h"
class SignallingClientSession : public rtsp::ServerSession
{
public:
typedef SessionsSharedData SharedData;
SignallingClientSession(
const Config*,
const SharedData*,
const CreatePeer& createPeer,
const SendRequest& sendRequest,
const SendResponse& sendResponse) noexcept;
bool onConnected() noexcept override;
protected:
const WebRTCConfigPtr& webRTCConfig() const override { return _webRTCConfig; }
bool onDescribeRequest(std::unique_ptr<rtsp::Request>&&) noexcept override;
bool onGetParameterResponse(
const rtsp::Request&,
const rtsp::Response&) noexcept override;
private:
const Config *const _config;
WebRTCConfigPtr _webRTCConfig;
const SharedData *const _sharedData;
std::optional<rtsp::CSeq> _iceServersRequest;
std::deque<std::unique_ptr<rtsp::Request>> _pendingRequests;
};