LeviLamina
Loading...
Searching...
No Matches
JsepTransport.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/ConnectionRole.h"
7#include "mc/external/cricket/ContentSource.h"
8#include "mc/external/rtc/SSLRole.h"
9#include "mc/external/webrtc/SdpType.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cricket { class Candidate; }
15namespace cricket { class DtlsTransportInternal; }
16namespace cricket { class IceTransportInternal; }
17namespace cricket { class SctpTransportInternal; }
18namespace cricket { struct IceParameters; }
19namespace cricket { struct JsepTransportDescription; }
20namespace cricket { struct TransportStats; }
21namespace rtc { class RTCCertificate; }
22namespace rtc { struct SSLFingerprint; }
23namespace webrtc { class DtlsSrtpTransport; }
24namespace webrtc { class IceTransportInterface; }
25namespace webrtc { class RTCError; }
26namespace webrtc { class RtpTransport; }
27namespace webrtc { class SrtpTransport; }
28// clang-format on
29
30namespace cricket {
31
33public:
34 // member variables
35 // NOLINTBEGIN
54 // NOLINTEND
55
56public:
57 // prevent constructor by default
58 JsepTransport& operator=(JsepTransport const&);
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCNAPI void ActivateRtcpMux();
66
67 MCNAPI ::webrtc::RTCError AddRemoteCandidates(::std::vector<::cricket::Candidate> const& candidates);
68
69 MCNAPI ::std::optional<::rtc::SSLRole> GetDtlsRole() const;
70
72
73 MCNAPI bool GetTransportStats(
75 int component,
77 );
78
80 ::std::string const& mid,
84 ::std::unique_ptr<::webrtc::RtpTransport> unencrypted_rtp_transport,
85 ::std::unique_ptr<::webrtc::SrtpTransport> sdes_transport,
86 ::std::unique_ptr<::webrtc::DtlsSrtpTransport> dtls_srtp_transport,
87 ::std::unique_ptr<::cricket::DtlsTransportInternal> rtp_dtls_transport,
88 ::std::unique_ptr<::cricket::DtlsTransportInternal> rtcp_dtls_transport,
89 ::std::unique_ptr<::cricket::SctpTransportInternal> sctp_transport,
90 ::std::function<void()> rtcp_mux_active_callback
91 );
92
93 MCNAPI ::webrtc::RTCError NegotiateAndSetDtlsParameters(::webrtc::SdpType local_description_type);
94
95 MCNAPI ::webrtc::RTCError NegotiateDtlsRole(
96 ::webrtc::SdpType local_description_type,
97 ::cricket::ConnectionRole local_connection_role,
98 ::cricket::ConnectionRole remote_connection_role,
99 ::std::optional<::rtc::SSLRole>* negotiated_dtls_role
100 );
101
102 MCNAPI void SetActiveResetSrtpParams(bool active_reset_srtp_params);
103
104 MCNAPI ::webrtc::RTCError SetLocalJsepTransportDescription(
105 ::cricket::JsepTransportDescription const& jsep_description,
106 ::webrtc::SdpType type
107 );
108
110
112 ::cricket::IceParameters const& ice_parameters,
114 );
115
116 MCNAPI ::webrtc::RTCError SetRemoteJsepTransportDescription(
117 ::cricket::JsepTransportDescription const& jsep_description,
118 ::webrtc::SdpType type
119 );
120
121 MCNAPI bool SetRtcpMux(bool enable, ::webrtc::SdpType type, ::cricket::ContentSource source);
122
123 MCNAPI ::webrtc::RTCError VerifyCertificateFingerprint(
124 ::rtc::RTCCertificate const* certificate,
125 ::rtc::SSLFingerprint const* fingerprint
126 ) const;
127
129 // NOLINTEND
130
131public:
132 // static functions
133 // NOLINTBEGIN
134 MCNAPI static ::webrtc::RTCError SetNegotiatedDtlsParameters(
135 ::cricket::DtlsTransportInternal* dtls_transport,
136 ::std::optional<::rtc::SSLRole> dtls_role,
137 ::rtc::SSLFingerprint* remote_fingerprint
138 );
139 // NOLINTEND
140
141public:
142 // constructor thunks
143 // NOLINTBEGIN
144 MCNAPI void* $ctor(
145 ::std::string const& mid,
146 ::webrtc::scoped_refptr<::rtc::RTCCertificate> const& local_certificate,
149 ::std::unique_ptr<::webrtc::RtpTransport> unencrypted_rtp_transport,
150 ::std::unique_ptr<::webrtc::SrtpTransport> sdes_transport,
151 ::std::unique_ptr<::webrtc::DtlsSrtpTransport> dtls_srtp_transport,
152 ::std::unique_ptr<::cricket::DtlsTransportInternal> rtp_dtls_transport,
153 ::std::unique_ptr<::cricket::DtlsTransportInternal> rtcp_dtls_transport,
154 ::std::unique_ptr<::cricket::SctpTransportInternal> sctp_transport,
155 ::std::function<void()> rtcp_mux_active_callback
156 );
157 // NOLINTEND
158
159public:
160 // destructor thunk
161 // NOLINTBEGIN
162 MCNAPI void $dtor();
163 // NOLINTEND
164};
165
166} // namespace cricket
Definition DtlsTransportInternal.h:21
Definition IceTransportInternal.h:26
Definition JsepTransport.h:32
MCAPI::webrtc::RTCError NegotiateAndSetDtlsParameters(::webrtc::SdpType local_description_type)
MCAPI::webrtc::RTCError SetRemoteJsepTransportDescription(::cricket::JsepTransportDescription const &jsep_description, ::webrtc::SdpType type)
MCAPI ::std::optional<::rtc::SSLRole > GetDtlsRole() const
MCAPI bool GetTransportStats(::cricket::DtlsTransportInternal *dtls_transport, int component, ::cricket::TransportStats *stats)
MCAPI void * $ctor(::std::string const &mid, ::webrtc::scoped_refptr<::rtc::RTCCertificate > const &local_certificate, ::webrtc::scoped_refptr<::webrtc::IceTransportInterface > ice_transport, ::webrtc::scoped_refptr<::webrtc::IceTransportInterface > rtcp_ice_transport, ::std::unique_ptr<::webrtc::RtpTransport > unencrypted_rtp_transport, ::std::unique_ptr<::webrtc::SrtpTransport > sdes_transport, ::std::unique_ptr<::webrtc::DtlsSrtpTransport > dtls_srtp_transport, ::std::unique_ptr<::cricket::DtlsTransportInternal > rtp_dtls_transport, ::std::unique_ptr<::cricket::DtlsTransportInternal > rtcp_dtls_transport, ::std::unique_ptr<::cricket::SctpTransportInternal > sctp_transport, ::std::function< void()> rtcp_mux_active_callback)
MCAPI::webrtc::RTCError SetLocalJsepTransportDescription(::cricket::JsepTransportDescription const &jsep_description, ::webrtc::SdpType type)
MCAPI::webrtc::RTCError AddRemoteCandidates(::std::vector<::cricket::Candidate > const &candidates)
MCAPI bool SetRtcpMux(bool enable, ::webrtc::SdpType type, ::cricket::ContentSource source)
MCAPI::webrtc::RTCError NegotiateDtlsRole(::webrtc::SdpType local_description_type, ::cricket::ConnectionRole local_connection_role, ::cricket::ConnectionRole remote_connection_role, ::std::optional<::rtc::SSLRole > *negotiated_dtls_role)
MCAPI void ActivateRtcpMux()
MCAPI bool GetStats(::cricket::TransportStats *stats)
MCAPI void SetRemoteIceParameters(::cricket::IceParameters const &ice_parameters, ::cricket::IceTransportInternal *ice_transport)
static MCAPI ::webrtc::RTCError SetNegotiatedDtlsParameters(::cricket::DtlsTransportInternal *dtls_transport, ::std::optional<::rtc::SSLRole > dtls_role, ::rtc::SSLFingerprint *remote_fingerprint)
MCAPI void SetActiveResetSrtpParams(bool active_reset_srtp_params)
MCAPI JsepTransport(::std::string const &mid, ::webrtc::scoped_refptr<::rtc::RTCCertificate > const &local_certificate, ::webrtc::scoped_refptr<::webrtc::IceTransportInterface > ice_transport, ::webrtc::scoped_refptr<::webrtc::IceTransportInterface > rtcp_ice_transport, ::std::unique_ptr<::webrtc::RtpTransport > unencrypted_rtp_transport, ::std::unique_ptr<::webrtc::SrtpTransport > sdes_transport, ::std::unique_ptr<::webrtc::DtlsSrtpTransport > dtls_srtp_transport, ::std::unique_ptr<::cricket::DtlsTransportInternal > rtp_dtls_transport, ::std::unique_ptr<::cricket::DtlsTransportInternal > rtcp_dtls_transport, ::std::unique_ptr<::cricket::SctpTransportInternal > sctp_transport, ::std::function< void()> rtcp_mux_active_callback)
MCAPI void SetNeedsIceRestartFlag()
MCAPI::webrtc::RTCError VerifyCertificateFingerprint(::rtc::RTCCertificate const *certificate, ::rtc::SSLFingerprint const *fingerprint) const
Definition RTCCertificate.h:18
Definition scoped_refptr.h:8
Definition IceParameters.h:12
Definition JsepTransportDescription.h:12
Definition TransportStats.h:7
Definition Alias.h:14
Definition SSLFingerprint.h:14