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
8// auto generated forward declare list
9// clang-format off
10namespace cricket { class AllocationSequence; }
11namespace cricket { class BasicPortAllocator; }
12namespace cricket { class Candidate; }
13namespace cricket { class Port; }
14namespace cricket { class PortInterface; }
15namespace cricket { struct IceCandidateErrorEvent; }
16namespace cricket { struct PortConfiguration; }
17namespace rtc { class Network; }
18// clang-format on
19
20namespace cricket {
21
23public:
24 // BasicPortAllocatorSession inner types declare
25 // clang-format off
26 class PortData;
27 // clang-format on
28
29 // BasicPortAllocatorSession inner types define
30 class PortData {};
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI void AddAllocatedPort(::cricket::Port*, ::cricket::AllocationSequence*);
36
37 MCAPI void AllocatePorts();
38
41 ::std::string_view,
42 int,
43 ::std::string_view,
44 ::std::string_view
45 );
46
47 MCAPI bool CandidatePairable(::cricket::Candidate const&, ::cricket::Port const*) const;
48
49 MCAPI bool CheckCandidateFilter(::cricket::Candidate const&) const;
50
51 MCAPI void ConfigReady(::std::unique_ptr<::cricket::PortConfiguration>);
52
53 MCAPI void DisableEquivalentPhases(::rtc::Network const*, ::cricket::PortConfiguration*, uint*);
54
55 MCAPI void DoAllocate(bool);
56
57 MCAPI ::cricket::BasicPortAllocatorSession::PortData* FindPort(::cricket::Port*);
58
59 MCAPI ::cricket::Port* GetBestTurnPortForNetwork(::std::string_view) const;
60
61 MCAPI void
62 GetCandidatesFromPort(::cricket::BasicPortAllocatorSession::PortData const&, ::std::vector<::cricket::Candidate>*)
63 const;
64
65 MCAPI ::std::vector<::rtc::Network const*> GetFailedNetworks();
66
67 MCAPI ::std::vector<::rtc::Network const*> GetNetworks();
68
69 MCAPI ::std::vector<::cricket::BasicPortAllocatorSession::PortData*>
70 GetUnprunedPorts(::std::vector<::rtc::Network const*> const&);
71
72 MCAPI void MaybeSignalCandidatesAllocationDone();
73
74 MCAPI void OnAllocate(int);
75
76 MCAPI void OnAllocationSequenceObjectsCreated();
77
78 MCAPI void OnCandidateError(::cricket::Port*, ::cricket::IceCandidateErrorEvent const&);
79
80 MCAPI void OnCandidateReady(::cricket::Port*, ::cricket::Candidate const&);
81
82 MCAPI void OnConfigReady(::std::unique_ptr<::cricket::PortConfiguration>);
83
84 MCAPI void OnConfigStop();
85
86 MCAPI void OnNetworksChanged();
87
88 MCAPI void OnPortAllocationComplete();
89
90 MCAPI void OnPortComplete(::cricket::Port*);
91
92 MCAPI void OnPortDestroyed(::cricket::PortInterface*);
93
94 MCAPI void OnPortError(::cricket::Port*);
95
96 MCAPI bool PruneNewlyPairableTurnPort(::cricket::BasicPortAllocatorSession::PortData*);
97
98 MCAPI void PrunePortsAndRemoveCandidates(::std::vector<::cricket::BasicPortAllocatorSession::PortData*> const&);
99
100 MCAPI bool PruneTurnPorts(::cricket::Port*);
101
102 MCAPI void Regather(::std::vector<::rtc::Network const*> const&, bool, ::cricket::IceRegatheringReason);
103 // NOLINTEND
104
105public:
106 // static functions
107 // NOLINTBEGIN
108 MCAPI static ::std::vector<::rtc::Network const*> SelectIPv6Networks(::std::vector<::rtc::Network const*>&, int);
109 // NOLINTEND
110
111public:
112 // constructor thunks
113 // NOLINTBEGIN
114 MCAPI void* $ctor(::cricket::BasicPortAllocator*, ::std::string_view, int, ::std::string_view, ::std::string_view);
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCAPI static void** $vftable();
121 // NOLINTEND
122};
123
124} // namespace cricket
Definition AllocationSequence.h:18
Definition BasicPortAllocatorSession.h:30
Definition BasicPortAllocatorSession.h:22
Definition BasicPortAllocator.h:16
Definition Candidate.h:15
Definition PortInterface.h:29
Definition Port.h:36
Definition Network.h:18
Definition IceCandidateErrorEvent.h:7
Definition PortConfiguration.h:17