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
32class JsepTransport {
33public:
34 // member variables
35 // NOLINTBEGIN
54 // NOLINTEND
55
56public:
57 // prevent constructor by default
58 JsepTransport& operator=(JsepTransport const&);
59 JsepTransport(JsepTransport const&);
60 JsepTransport();
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCNAPI ::webrtc::RTCError AddRemoteCandidates(::std::vector<::cricket::Candidate> const& candidates);
66
67 MCNAPI ::std::optional<::rtc::SSLRole> GetDtlsRole() const;
68
70
71 MCNAPI bool GetTransportStats(
73 int component,
75 );
76
78 ::std::string const& mid,
82 ::std::unique_ptr<::webrtc::RtpTransport> unencrypted_rtp_transport,
83 ::std::unique_ptr<::webrtc::SrtpTransport> sdes_transport,
84 ::std::unique_ptr<::webrtc::DtlsSrtpTransport> dtls_srtp_transport,
85 ::std::unique_ptr<::cricket::DtlsTransportInternal> rtp_dtls_transport,
86 ::std::unique_ptr<::cricket::DtlsTransportInternal> rtcp_dtls_transport,
87 ::std::unique_ptr<::cricket::SctpTransportInternal> sctp_transport,
88 ::std::function<void()> rtcp_mux_active_callback
89 );
90
91 MCNAPI ::webrtc::RTCError NegotiateAndSetDtlsParameters(::webrtc::SdpType local_description_type);
92
93 MCNAPI ::webrtc::RTCError NegotiateDtlsRole(
94 ::webrtc::SdpType local_description_type,
95 ::cricket::ConnectionRole local_connection_role,
96 ::cricket::ConnectionRole remote_connection_role,
97 ::std::optional<::rtc::SSLRole>* negotiated_dtls_role
98 );
99
100 MCNAPI void SetActiveResetSrtpParams(bool active_reset_srtp_params);
101
102 MCNAPI ::webrtc::RTCError SetLocalJsepTransportDescription(
103 ::cricket::JsepTransportDescription const& jsep_description,
104 ::webrtc::SdpType type
105 );
106
108
110 ::cricket::IceParameters const& ice_parameters,
112 );
113
114 MCNAPI ::webrtc::RTCError SetRemoteJsepTransportDescription(
115 ::cricket::JsepTransportDescription const& jsep_description,
116 ::webrtc::SdpType type
117 );
118
119 MCNAPI bool SetRtcpMux(bool enable, ::webrtc::SdpType type, ::cricket::ContentSource source);
120
121 MCNAPI ::webrtc::RTCError VerifyCertificateFingerprint(
122 ::rtc::RTCCertificate const* certificate,
123 ::rtc::SSLFingerprint const* fingerprint
124 ) const;
125
127 // NOLINTEND
128
129public:
130 // constructor thunks
131 // NOLINTBEGIN
132 MCNAPI void* $ctor(
133 ::std::string const& mid,
134 ::webrtc::scoped_refptr<::rtc::RTCCertificate> const& local_certificate,
137 ::std::unique_ptr<::webrtc::RtpTransport> unencrypted_rtp_transport,
138 ::std::unique_ptr<::webrtc::SrtpTransport> sdes_transport,
139 ::std::unique_ptr<::webrtc::DtlsSrtpTransport> dtls_srtp_transport,
140 ::std::unique_ptr<::cricket::DtlsTransportInternal> rtp_dtls_transport,
141 ::std::unique_ptr<::cricket::DtlsTransportInternal> rtcp_dtls_transport,
142 ::std::unique_ptr<::cricket::SctpTransportInternal> sctp_transport,
143 ::std::function<void()> rtcp_mux_active_callback
144 );
145 // NOLINTEND
146
147public:
148 // destructor thunk
149 // NOLINTBEGIN
150 MCNAPI void $dtor();
151 // NOLINTEND
152};
153
154} // namespace cricket
Definition Candidate.h:15
Definition DtlsTransportInternal.h:21
Definition IceTransportInternal.h:26
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 bool GetStats(::cricket::TransportStats *stats)
MCAPI void SetRemoteIceParameters(::cricket::IceParameters const &ice_parameters, ::cricket::IceTransportInternal *ice_transport)
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 SctpTransportInternal.h:16
Definition RTCCertificate.h:18
Definition DtlsSrtpTransport.h:18
Definition IceTransportInterface.h:15
Definition RTCError.h:10
Definition RtpTransport.h:28
Definition SrtpTransport.h:21
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