LeviLamina
Loading...
Searching...
No Matches
P2PTransportChannel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/IceSwitchReason.h"
7#include "mc/external/cricket/IceTransportState.h"
8#include "mc/external/cricket/ProtocolType.h"
9#include "mc/external/webrtc/IceCandidatePairConfigType.h"
10#include "mc/external/webrtc/IceTransportState.h"
11#include "mc/external/webrtc/RTCErrorOr.h"
12
13// auto generated forward declare list
14// clang-format off
15namespace cricket { class ActiveIceControllerFactoryInterface; }
16namespace cricket { class Candidate; }
17namespace cricket { class Connection; }
18namespace cricket { class IceControllerFactoryInterface; }
19namespace cricket { class IceMessage; }
20namespace cricket { class PortAllocator; }
21namespace cricket { class PortAllocatorSession; }
22namespace cricket { class PortInterface; }
23namespace cricket { class StunAttribute; }
24namespace cricket { class StunByteStringAttribute; }
25namespace cricket { class StunUInt64Attribute; }
26namespace cricket { struct IceCandidateErrorEvent; }
27namespace cricket { struct IceConfig; }
28namespace cricket { struct IceParameters; }
29namespace rtc { class ReceivedPacket; }
30namespace rtc { class SocketAddress; }
31namespace rtc { struct NetworkRoute; }
32namespace rtc { struct SentPacket; }
33namespace webrtc { class AsyncDnsResolverFactoryInterface; }
34namespace webrtc { class AsyncDnsResolverInterface; }
35namespace webrtc { class AsyncDnsResolverResult; }
36namespace webrtc { class FieldTrialsView; }
37namespace webrtc { class RTCError; }
38namespace webrtc { class RtcEventLog; }
39namespace webrtc { struct IceTransportInit; }
40// clang-format on
41
42namespace cricket {
43
45public:
46 // P2PTransportChannel inner types declare
47 // clang-format off
49 // clang-format on
50
51 // P2PTransportChannel inner types define
53 public:
54 // prevent constructor by default
56
57 public:
58 // member functions
59 // NOLINTBEGIN
60 MCNAPI
61 CandidateAndResolver(::cricket::Candidate const&, ::std::unique_ptr<::webrtc::AsyncDnsResolverInterface>&&);
62
64 // NOLINTEND
65
66 public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCNAPI void* $ctor(::cricket::Candidate const&, ::std::unique_ptr<::webrtc::AsyncDnsResolverInterface>&&);
70 // NOLINTEND
71
72 public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCNAPI void $dtor();
76 // NOLINTEND
77 };
78
79public:
80 // prevent constructor by default
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCNAPI void AddAllocatorSession(::std::unique_ptr<::cricket::PortAllocatorSession>);
87
89
91
92 MCNAPI bool AllowedToPruneConnections() const;
93
95
96 MCNAPI ::webrtc::IceTransportState ComputeIceTransportState() const;
97
98 MCNAPI ::cricket::IceTransportState ComputeState() const;
99
100 MCNAPI ::rtc::NetworkRoute ConfigureNetworkRoute(::cricket::Connection const*);
101
103
105
106 MCNAPI bool FindConnection(::cricket::Connection const*) const;
107
108 MCNAPI ::cricket::IceParameters const* FindRemoteIceFromUfrag(::std::string_view, uint*);
109
111
113
115
117
119
120 MCNAPI ::std::unique_ptr<::cricket::StunAttribute> GoogDeltaReceived(::cricket::StunByteStringAttribute const*);
121
122 MCNAPI void HandleAllTimedOut();
123
125
126 MCNAPI bool IsPortPruned(::cricket::PortInterface const*) const;
127
129
130 MCNAPI void LogCandidatePairConfig(::cricket::Connection*, ::webrtc::IceCandidatePairConfigType);
131
133
135
137
138 MCNAPI void OnCandidateFilterChanged(uint, uint);
139
141
143
144 MCNAPI void OnCandidatesReady(::cricket::PortAllocatorSession*, ::std::vector<::cricket::Candidate> const&);
145
146 MCNAPI void OnCandidatesRemoved(::cricket::PortAllocatorSession*, ::std::vector<::cricket::Candidate> const&);
147
149
151
153
155
157
158 MCNAPI void OnPortsPruned(::cricket::PortAllocatorSession*, ::std::vector<::cricket::PortInterface*> const&);
159
161
163
165
167
168 MCNAPI void OnSentPacket(::rtc::SentPacket const&);
169
170 MCNAPI void OnUnknownAddress(
173 ::cricket::ProtocolType,
175 ::std::string const&,
176 bool
177 );
178
180 ::std::string_view,
181 int,
184 ::std::unique_ptr<::webrtc::AsyncDnsResolverFactoryInterface>,
189 );
190
192
194
195 MCNAPI bool PresumedWritable(::cricket::Connection const*) const;
196
197 MCNAPI void PruneAllPorts();
198
200
201 MCNAPI bool ReadyToSend(::cricket::Connection const*) const;
202
204
206
208
209 MCNAPI ::cricket::Candidate SanitizeLocalCandidate(::cricket::Candidate const&) const;
210
211 MCNAPI ::cricket::Candidate SanitizeRemoteCandidate(::cricket::Candidate const&) const;
212
214
215 MCNAPI void SetReceiving(bool);
216
217 MCNAPI void SetWritable(bool);
218
219 MCNAPI void SwitchSelectedConnectionInternal(::cricket::Connection*, ::cricket::IceSwitchReason);
220
221 MCNAPI ::std::string ToString() const;
222
223 MCNAPI void UpdateTransportState();
224 // NOLINTEND
225
226public:
227 // static functions
228 // NOLINTBEGIN
229 MCNAPI static ::std::unique_ptr<::cricket::P2PTransportChannel>
230 Create(::std::string_view, int, ::webrtc::IceTransportInit);
231
232 MCNAPI static ::webrtc::RTCError ValidateIceConfig(::cricket::IceConfig const&);
233 // NOLINTEND
234
235public:
236 // constructor thunks
237 // NOLINTBEGIN
238 MCNAPI void* $ctor(
239 ::std::string_view,
240 int,
243 ::std::unique_ptr<::webrtc::AsyncDnsResolverFactoryInterface>,
248 );
249 // NOLINTEND
250
251public:
252 // vftables
253 // NOLINTBEGIN
254 MCNAPI static void** $vftableForIceTransportInternal();
255
256 MCNAPI static void** $vftableForIceAgentInterface();
257 // NOLINTEND
258};
259
260} // namespace cricket
Definition ActiveIceControllerFactoryInterface.h:7
Definition Candidate.h:15
Definition Connection.h:38
Definition IceControllerFactoryInterface.h:7
Definition IceMessage.h:11
Definition P2PTransportChannel.h:44
MCAPI int64 ComputeEstimatedDisconnectedTimeMs(int64, ::cricket::Connection *)
MCAPI bool CreateConnection(::cricket::PortInterface *, ::cricket::Candidate const &, ::cricket::PortInterface *)
MCAPI void OnPortsPruned(::cricket::PortAllocatorSession *, ::std::vector<::cricket::PortInterface * > const &)
MCAPI::cricket::Candidate SanitizeRemoteCandidate(::cricket::Candidate const &) const
MCAPI void OnCandidateError(::cricket::PortAllocatorSession *, ::cricket::IceCandidateErrorEvent const &)
MCAPI void MarkConnectionPinged(::cricket::Connection *)
MCAPI void ResolveHostnameCandidate(::cricket::Candidate const &)
MCAPI uint GetNominationAttr(::cricket::Connection *) const
static MCAPI ::std::unique_ptr<::cricket::P2PTransportChannel > Create(::std::string_view, int, ::webrtc::IceTransportInit)
MCAPI bool PresumedWritable(::cricket::Connection const *) const
MCAPI void OnRoleConflict(::cricket::PortInterface *)
MCAPI ::std::unique_ptr<::cricket::StunAttribute > GoogDeltaReceived(::cricket::StunByteStringAttribute const *)
MCAPI void OnCandidateFilterChanged(uint, uint)
MCAPI bool CreateConnections(::cricket::Candidate const &, ::cricket::PortInterface *)
MCAPI void ParseFieldTrials(::webrtc::FieldTrialsView const *)
MCAPI bool IsPortPruned(::cricket::PortInterface const *) const
MCAPI void SwitchSelectedConnectionInternal(::cricket::Connection *, ::cricket::IceSwitchReason)
MCAPI void OnReadPacket(::cricket::Connection *, ::rtc::ReceivedPacket const &)
MCAPI void PingConnection(::cricket::Connection *)
MCAPI::rtc::NetworkRoute ConfigureNetworkRoute(::cricket::Connection const *)
MCAPI void OnUnknownAddress(::cricket::PortInterface *, ::rtc::SocketAddress const &, ::cricket::ProtocolType, ::cricket::IceMessage *, ::std::string const &, bool)
MCAPI bool IsDuplicateRemoteCandidate(::cricket::Candidate const &)
MCAPI void LogCandidatePairConfig(::cricket::Connection *, ::webrtc::IceCandidatePairConfigType)
MCAPI void AddConnection(::cricket::Connection *)
static MCAPI void ** $vftableForIceTransportInternal()
MCAPI void OnSelectedConnectionDestroyed()
MCAPI void RemoveConnection(::cricket::Connection *)
MCAPI bool GetUseCandidateAttr(::cricket::Connection *) const
MCAPI void * $ctor(::std::string_view, int, ::cricket::PortAllocator *, ::webrtc::AsyncDnsResolverFactoryInterface *, ::std::unique_ptr<::webrtc::AsyncDnsResolverFactoryInterface >, ::webrtc::RtcEventLog *, ::cricket::IceControllerFactoryInterface *, ::cricket::ActiveIceControllerFactoryInterface *, ::webrtc::FieldTrialsView const *)
MCAPI void RememberRemoteCandidate(::cricket::Candidate const &, ::cricket::PortInterface *)
MCAPI void OnReadyToSend(::cricket::Connection *)
MCAPI::cricket::IceTransportState ComputeState() const
MCAPI bool ReadyToSend(::cricket::Connection const *) const
MCAPI bool FindConnection(::cricket::Connection const *) const
MCAPI void SetWritable(bool)
MCAPI void OnCandidatesAllocationDone(::cricket::PortAllocatorSession *)
MCAPI void AddAllocatorSession(::std::unique_ptr<::cricket::PortAllocatorSession >)
MCAPI::cricket::Candidate SanitizeLocalCandidate(::cricket::Candidate const &) const
MCAPI void SendPingRequestInternal(::cricket::Connection *)
MCAPI::webrtc::IceTransportState ComputeIceTransportState() const
MCAPI void OnPortDestroyed(::cricket::PortInterface *)
MCAPI bool IsRemoteCandidatePruned(::cricket::Candidate const &) const
MCAPI::cricket::IceParameters const * FindRemoteIceFromUfrag(::std::string_view, uint *)
MCAPI void SetReceiving(bool)
MCAPI void AddRemoteCandidateWithResult(::cricket::Candidate, ::webrtc::AsyncDnsResolverResult const &)
MCAPI void GoogDeltaAckReceived(::webrtc::RTCErrorOr<::cricket::StunUInt64Attribute const * >)
MCAPI void OnNominated(::cricket::Connection *)
MCAPI void OnPortReady(::cricket::PortAllocatorSession *, ::cricket::PortInterface *)
MCAPI void OnCandidatesRemoved(::cricket::PortAllocatorSession *, ::std::vector<::cricket::Candidate > const &)
MCAPI void OnConnectionDestroyed(::cricket::Connection *)
MCAPI void FinishAddingRemoteCandidate(::cricket::Candidate const &)
MCAPI uint GetRemoteCandidateGeneration(::cricket::Candidate const &)
static MCAPI ::webrtc::RTCError ValidateIceConfig(::cricket::IceConfig const &)
MCAPI bool AllowedToPruneConnections() const
static MCAPI void ** $vftableForIceAgentInterface()
MCAPI void OnCandidateResolved(::webrtc::AsyncDnsResolverInterface *)
MCAPI::std::string ToString() const
MCAPI P2PTransportChannel(::std::string_view, int, ::cricket::PortAllocator *, ::webrtc::AsyncDnsResolverFactoryInterface *, ::std::unique_ptr<::webrtc::AsyncDnsResolverFactoryInterface >, ::webrtc::RtcEventLog *, ::cricket::IceControllerFactoryInterface *, ::cricket::ActiveIceControllerFactoryInterface *, ::webrtc::FieldTrialsView const *)
MCAPI void MaybeStopPortAllocatorSessions()
MCAPI void OnSentPacket(::rtc::SentPacket const &)
MCAPI bool PrunePort(::cricket::PortInterface *)
MCAPI void OnCandidatesReady(::cricket::PortAllocatorSession *, ::std::vector<::cricket::Candidate > const &)
MCAPI void OnConnectionStateChange(::cricket::Connection *)
Definition PortAllocatorSession.h:18
Definition PortAllocator.h:25
Definition PortInterface.h:29
Definition StunByteStringAttribute.h:17
Definition ReceivedPacket.h:16
Definition SocketAddress.h:12
Definition AsyncDnsResolverFactoryInterface.h:16
Definition AsyncDnsResolverInterface.h:16
Definition AsyncDnsResolverResult.h:12
Definition FieldTrialsView.h:7
Definition RTCErrorOr.h:8
Definition RtcEventLog.h:13
Definition IceCandidateErrorEvent.h:7
Definition IceConfig.h:10
Definition P2PTransportChannel.h:52
MCAPI void * $ctor(::cricket::Candidate const &, ::std::unique_ptr<::webrtc::AsyncDnsResolverInterface > &&)
MCAPI CandidateAndResolver(::cricket::Candidate const &, ::std::unique_ptr<::webrtc::AsyncDnsResolverInterface > &&)
Definition SentPacket.h:12
Definition IceTransportInit.h:7