LeviLamina
Loading...
Searching...
No Matches
BasicPortAllocatorSession.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/IceRegatheringReason.h"
7#include "mc/external/cricket/PortAllocatorSession.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace cricket { class AllocationSequence; }
12namespace cricket { class BasicPortAllocator; }
13namespace cricket { class Candidate; }
14namespace cricket { class CandidateStats; }
15namespace cricket { class Port; }
16namespace cricket { class PortInterface; }
17namespace cricket { struct IceCandidateErrorEvent; }
18namespace cricket { struct PortConfiguration; }
19namespace rtc { class Network; }
20// clang-format on
21
22namespace cricket {
23
25public:
26 // BasicPortAllocatorSession inner types declare
27 // clang-format off
28 class PortData;
29 // clang-format on
30
31 // BasicPortAllocatorSession inner types define
32 class PortData {
33 public:
34 // PortData inner types define
35 enum class State : int {
36 Inprogress = 0,
37 Complete = 1,
38 Error = 2,
39 Pruned = 3,
40 };
41
42 public:
43 // member variables
44 // NOLINTBEGIN
49 // NOLINTEND
50
51 public:
52 // prevent constructor by default
53 PortData& operator=(PortData const&);
54 PortData(PortData const&);
55 PortData();
56 };
57
58public:
59 // member variables
60 // NOLINTBEGIN
76 // NOLINTEND
77
78public:
79 // prevent constructor by default
83
84public:
85 // virtual functions
86 // NOLINTBEGIN
87 // vIndex: 0
88 virtual ~BasicPortAllocatorSession() /*override*/;
89
90 // vIndex: 18
91 virtual ::cricket::BasicPortAllocator* allocator();
92
93 // vIndex: 1
94 virtual void SetCandidateFilter(uint filter) /*override*/;
95
96 // vIndex: 2
97 virtual void StartGettingPorts() /*override*/;
98
99 // vIndex: 3
100 virtual void StopGettingPorts() /*override*/;
101
102 // vIndex: 5
103 virtual void ClearGettingPorts() /*override*/;
104
105 // vIndex: 4
106 virtual bool IsGettingPorts() /*override*/;
107
108 // vIndex: 6
109 virtual bool IsCleared() const /*override*/;
110
111 // vIndex: 7
112 virtual bool IsStopped() const /*override*/;
113
114 // vIndex: 11
115 virtual ::std::vector<::cricket::PortInterface*> ReadyPorts() const /*override*/;
116
117 // vIndex: 12
118 virtual ::std::vector<::cricket::Candidate> ReadyCandidates() const /*override*/;
119
120 // vIndex: 13
121 virtual bool CandidatesAllocationDone() const /*override*/;
122
123 // vIndex: 8
124 virtual void RegatherOnFailedNetworks() /*override*/;
125
126 // vIndex: 9
127 virtual void GetCandidateStatsFromReadyPorts(::std::vector<::cricket::CandidateStats>* candidate_stats_list) const
128 /*override*/;
129
130 // vIndex: 10
131 virtual void
132 SetStunKeepaliveIntervalForReadyPorts(::std::optional<int> const& stun_keepalive_interval) /*override*/;
133
134 // vIndex: 14
135 virtual void PruneAllPorts() /*override*/;
136
137 // vIndex: 17
138 virtual void UpdateIceParametersInternal() /*override*/;
139
140 // vIndex: 19
141 virtual void GetPortConfigurations();
142 // NOLINTEND
143
144public:
145 // member functions
146 // NOLINTBEGIN
147 MCNAPI void AddAllocatedPort(::cricket::Port* port, ::cricket::AllocationSequence* seq);
148
149 MCNAPI void AllocatePorts();
150
152 ::cricket::BasicPortAllocator* allocator,
153 ::std::string_view content_name,
154 int component,
155 ::std::string_view ice_ufrag,
156 ::std::string_view ice_pwd
157 );
158
159 MCNAPI bool CandidatePairable(::cricket::Candidate const& c, ::cricket::Port const* port) const;
160
161 MCNAPI bool CheckCandidateFilter(::cricket::Candidate const& c) const;
162
163 MCNAPI void ConfigReady(::std::unique_ptr<::cricket::PortConfiguration> config);
164
165 MCNAPI void
166 DisableEquivalentPhases(::rtc::Network const* network, ::cricket::PortConfiguration* config, uint* flags);
167
168 MCNAPI void DoAllocate(bool disable_equivalent);
169
170 MCNAPI ::cricket::BasicPortAllocatorSession::PortData* FindPort(::cricket::Port* port);
171
172 MCNAPI ::cricket::Port* GetBestTurnPortForNetwork(::std::string_view network_name) const;
173
175 ::cricket::BasicPortAllocatorSession::PortData const& data,
176 ::std::vector<::cricket::Candidate>* candidates
177 ) const;
178
179 MCNAPI ::std::vector<::rtc::Network const*> GetFailedNetworks();
180
181 MCNAPI ::std::vector<::rtc::Network const*> GetNetworks();
182
183 MCNAPI ::std::vector<::cricket::BasicPortAllocatorSession::PortData*>
184 GetUnprunedPorts(::std::vector<::rtc::Network const*> const& networks);
185
187
188 MCNAPI void OnAllocate(int allocation_epoch);
189
191
192 MCNAPI void OnCandidateError(::cricket::Port* port, ::cricket::IceCandidateErrorEvent const& event);
193
194 MCNAPI void OnCandidateReady(::cricket::Port* port, ::cricket::Candidate const& c);
195
196 MCNAPI void OnConfigReady(::std::unique_ptr<::cricket::PortConfiguration> config);
197
198 MCNAPI void OnConfigStop();
199
200 MCNAPI void OnNetworksChanged();
201
203
204 MCNAPI void OnPortComplete(::cricket::Port* port);
205
206 MCNAPI void OnPortDestroyed(::cricket::PortInterface* port);
207
208 MCNAPI void OnPortError(::cricket::Port* port);
209
210 MCNAPI bool PruneNewlyPairableTurnPort(::cricket::BasicPortAllocatorSession::PortData* newly_pairable_port_data);
211
212 MCNAPI void
213 PrunePortsAndRemoveCandidates(::std::vector<::cricket::BasicPortAllocatorSession::PortData*> const& port_data_list);
214
215 MCNAPI bool PruneTurnPorts(::cricket::Port* newly_pairable_turn_port);
216
217 MCNAPI void Regather(
218 ::std::vector<::rtc::Network const*> const& networks,
219 bool disable_equivalent_phases,
220 ::cricket::IceRegatheringReason reason
221 );
222 // NOLINTEND
223
224public:
225 // static functions
226 // NOLINTBEGIN
227 MCNAPI static ::std::vector<::rtc::Network const*>
228 SelectIPv6Networks(::std::vector<::rtc::Network const*>& all_ipv6_networks, int max_ipv6_networks);
229 // NOLINTEND
230
231public:
232 // constructor thunks
233 // NOLINTBEGIN
234 MCNAPI void* $ctor(
235 ::cricket::BasicPortAllocator* allocator,
236 ::std::string_view content_name,
237 int component,
238 ::std::string_view ice_ufrag,
239 ::std::string_view ice_pwd
240 );
241 // NOLINTEND
242
243public:
244 // destructor thunk
245 // NOLINTBEGIN
246 MCNAPI void $dtor();
247 // NOLINTEND
248
249public:
250 // virtual function thunks
251 // NOLINTBEGIN
252 MCNAPI ::cricket::BasicPortAllocator* $allocator();
253
254 MCNAPI void $SetCandidateFilter(uint filter);
255
256 MCNAPI void $StartGettingPorts();
257
258 MCNAPI void $StopGettingPorts();
259
260 MCNAPI void $ClearGettingPorts();
261
262 MCNAPI bool $IsGettingPorts();
263
264 MCNAPI bool $IsCleared() const;
265
266 MCNAPI bool $IsStopped() const;
267
268 MCNAPI ::std::vector<::cricket::PortInterface*> $ReadyPorts() const;
269
270 MCNAPI ::std::vector<::cricket::Candidate> $ReadyCandidates() const;
271
272 MCNAPI bool $CandidatesAllocationDone() const;
273
275
276 MCNAPI void $GetCandidateStatsFromReadyPorts(::std::vector<::cricket::CandidateStats>* candidate_stats_list) const;
277
278 MCNAPI void $SetStunKeepaliveIntervalForReadyPorts(::std::optional<int> const& stun_keepalive_interval);
279
280 MCNAPI void $PruneAllPorts();
281
283
285 // NOLINTEND
286
287public:
288 // vftables
289 // NOLINTBEGIN
290 MCNAPI static void** $vftable();
291 // NOLINTEND
292};
293
294} // namespace cricket
Definition AllocationSequence.h:21
Definition BasicPortAllocatorSession.h:32
Definition BasicPortAllocatorSession.h:24
MCAPI void ConfigReady(::std::unique_ptr<::cricket::PortConfiguration > config)
MCAPI ::std::vector<::cricket::BasicPortAllocatorSession::PortData * > GetUnprunedPorts(::std::vector<::rtc::Network const * > const &networks)
MCAPI bool PruneTurnPorts(::cricket::Port *newly_pairable_turn_port)
MCAPI void Regather(::std::vector<::rtc::Network const * > const &networks, bool disable_equivalent_phases, ::cricket::IceRegatheringReason reason)
MCAPI void OnAllocationSequenceObjectsCreated()
MCAPI void OnAllocate(int allocation_epoch)
MCAPI void DisableEquivalentPhases(::rtc::Network const *network, ::cricket::PortConfiguration *config, uint *flags)
MCAPI void GetCandidatesFromPort(::cricket::BasicPortAllocatorSession::PortData const &data, ::std::vector<::cricket::Candidate > *candidates) const
MCAPI bool CandidatePairable(::cricket::Candidate const &c, ::cricket::Port const *port) const
MCAPI void * $ctor(::cricket::BasicPortAllocator *allocator, ::std::string_view content_name, int component, ::std::string_view ice_ufrag, ::std::string_view ice_pwd)
MCAPI void OnPortError(::cricket::Port *port)
MCAPI ::std::vector<::rtc::Network const * > GetFailedNetworks()
MCAPI void MaybeSignalCandidatesAllocationDone()
MCAPI::cricket::BasicPortAllocatorSession::PortData * FindPort(::cricket::Port *port)
static MCAPI ::std::vector<::rtc::Network const * > SelectIPv6Networks(::std::vector<::rtc::Network const * > &all_ipv6_networks, int max_ipv6_networks)
MCAPI void OnPortDestroyed(::cricket::PortInterface *port)
MCAPI void $SetStunKeepaliveIntervalForReadyPorts(::std::optional< int > const &stun_keepalive_interval)
MCAPI bool $CandidatesAllocationDone() const
MCAPI void OnCandidateError(::cricket::Port *port, ::cricket::IceCandidateErrorEvent const &event)
MCAPI ::std::vector<::cricket::Candidate > $ReadyCandidates() const
MCAPI ::std::vector<::rtc::Network const * > GetNetworks()
MCAPI void OnCandidateReady(::cricket::Port *port, ::cricket::Candidate const &c)
MCAPI void DoAllocate(bool disable_equivalent)
MCAPI::cricket::BasicPortAllocator * $allocator()
MCAPI void OnPortComplete(::cricket::Port *port)
MCAPI ::std::vector<::cricket::PortInterface * > $ReadyPorts() const
MCAPI void OnConfigReady(::std::unique_ptr<::cricket::PortConfiguration > config)
MCAPI void AddAllocatedPort(::cricket::Port *port, ::cricket::AllocationSequence *seq)
MCAPI void $GetCandidateStatsFromReadyPorts(::std::vector<::cricket::CandidateStats > *candidate_stats_list) const
MCAPI bool PruneNewlyPairableTurnPort(::cricket::BasicPortAllocatorSession::PortData *newly_pairable_port_data)
MCAPI void PrunePortsAndRemoveCandidates(::std::vector<::cricket::BasicPortAllocatorSession::PortData * > const &port_data_list)
MCAPI void $SetCandidateFilter(uint filter)
static MCAPI void ** $vftable()
MCAPI::cricket::Port * GetBestTurnPortForNetwork(::std::string_view network_name) const
MCAPI bool CheckCandidateFilter(::cricket::Candidate const &c) const
Definition BasicPortAllocator.h:21
Definition CandidateStats.h:7
Definition Candidate.h:15
Definition PortAllocatorSession.h:18
Definition PortInterface.h:29
Definition Port.h:36
STL namespace.
Definition IceCandidateErrorEvent.h:7
Definition PortConfiguration.h:17
Definition Alias.h:14