LeviLamina
Loading...
Searching...
No Matches
PortAllocator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/sigslot/has_slots.h"
7#include "mc/external/webrtc/PortPrunePolicy.h"
8#include "mc/external/webrtc/VpnPreference.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace cricket { class Candidate; }
13namespace cricket { class CandidateStats; }
14namespace cricket { class PortAllocatorSession; }
15namespace cricket { struct IceParameters; }
16namespace cricket { struct RelayServerConfig; }
17namespace rtc { class NetworkMask; }
18namespace rtc { class SocketAddress; }
19namespace sigslot { class single_threaded; }
20namespace webrtc { class TurnCustomizer; }
21// clang-format on
22
23namespace cricket {
24
25class PortAllocator : public ::sigslot::has_slots<::sigslot::single_threaded> {
26public:
27 // member variables
28 // NOLINTBEGIN
51 // NOLINTEND
52
53public:
54 // prevent constructor by default
55 PortAllocator& operator=(PortAllocator const&);
57
58public:
59 // virtual functions
60 // NOLINTBEGIN
61 // vIndex: 0
62 virtual ~PortAllocator() /*override*/ = default;
63
64 // vIndex: 1
65 virtual void Initialize();
66
67 // vIndex: 2
68 virtual void set_restrict_ice_credentials_change(bool);
69
70 // vIndex: 3
71 virtual void SetNetworkIgnoreMask(int) = 0;
72
73 // vIndex: 4
74 virtual void SetVpnPreference(::webrtc::VpnPreference);
75
76 // vIndex: 5
77 virtual void SetVpnList(::std::vector<::rtc::NetworkMask> const&);
78
79 // vIndex: 6
80 virtual void GetCandidateStatsFromPooledSessions(::std::vector<::cricket::CandidateStats>*);
81
82 // vIndex: 7
83 virtual ::cricket::PortAllocatorSession*
84 CreateSessionInternal(::std::string_view, int, ::std::string_view, ::std::string_view) = 0;
85
86 // vIndex: 8
87 virtual bool MdnsObfuscationEnabled() const;
88 // NOLINTEND
89
90public:
91 // member functions
92 // NOLINTBEGIN
93 MCAPI ::std::unique_ptr<::cricket::PortAllocatorSession>
94 CreateSession(::std::string_view, int, ::std::string_view, ::std::string_view);
95
96 MCAPI void DiscardCandidatePool();
97
98 MCAPI ::std::_Vector_const_iterator<
99 ::std::_Vector_val<::std::_Simple_types<::std::unique_ptr<::cricket::PortAllocatorSession>>>>
100 FindPooledSession(::cricket::IceParameters const*) const;
101
102 MCAPI ::std::vector<::cricket::IceParameters> GetPooledIceCredentials();
103
104 MCAPI PortAllocator();
105
106 MCAPI ::cricket::Candidate SanitizeCandidate(::cricket::Candidate const&) const;
107
108 MCAPI void SetCandidateFilter(uint);
109
110 MCAPI bool
111 SetConfiguration(::std::set<::rtc::SocketAddress> const&, ::std::vector<::cricket::RelayServerConfig> const&, ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const&, int, ::webrtc::PortPrunePolicy, ::webrtc::TurnCustomizer*, ::std::optional<int> const&);
112
113 MCAPI ::std::unique_ptr<::cricket::PortAllocatorSession>
114 TakePooledSession(::std::string_view, int, ::std::string_view, ::std::string_view);
115 // NOLINTEND
116
117public:
118 // constructor thunks
119 // NOLINTBEGIN
120 MCAPI void* $ctor();
121 // NOLINTEND
122
123public:
124 // destructor thunk
125 // NOLINTBEGIN
126
127 // NOLINTEND
128
129public:
130 // virtual function thunks
131 // NOLINTBEGIN
132
133 // NOLINTEND
134
135public:
136 // vftables
137 // NOLINTBEGIN
138 MCAPI static void** $vftable();
139 // NOLINTEND
140};
141
142} // namespace cricket
Definition Candidate.h:15
Definition PortAllocator.h:25
Definition has_slots.h:8
Definition TurnCustomizer.h:13
Definition IceParameters.h:12
Definition Alias.h:14