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/sigslot/single_threaded.h"
8#include "mc/external/webrtc/PortPrunePolicy.h"
9#include "mc/external/webrtc/VpnPreference.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace cricket { class Candidate; }
14namespace cricket { class CandidateStats; }
15namespace cricket { class PortAllocatorSession; }
16namespace cricket { struct IceParameters; }
17namespace cricket { struct RelayServerConfig; }
18namespace rtc { class NetworkMask; }
19namespace rtc { class SocketAddress; }
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*/;
63
64 // vIndex: 1
65 virtual void Initialize();
66
67 // vIndex: 2
68 virtual void set_restrict_ice_credentials_change(bool value);
69
70 // vIndex: 3
71 virtual void SetNetworkIgnoreMask(int) = 0;
72
73 // vIndex: 4
74 virtual void SetVpnPreference(::webrtc::VpnPreference preference);
75
76 // vIndex: 5
77 virtual void SetVpnList(::std::vector<::rtc::NetworkMask> const& vpn_list);
78
79 // vIndex: 6
80 virtual void GetCandidateStatsFromPooledSessions(::std::vector<::cricket::CandidateStats>* candidate_stats_list);
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 MCNAPI ::std::unique_ptr<::cricket::PortAllocatorSession> CreateSession(
94 ::std::string_view content_name,
95 int component,
96 ::std::string_view ice_ufrag,
97 ::std::string_view ice_pwd
98 );
99
100 MCNAPI void DiscardCandidatePool();
101
102 MCNAPI ::std::_Vector_const_iterator<
103 ::std::_Vector_val<::std::_Simple_types<::std::unique_ptr<::cricket::PortAllocatorSession>>>>
104 FindPooledSession(::cricket::IceParameters const* ice_credentials) const;
105
106 MCNAPI ::std::vector<::cricket::IceParameters> GetPooledIceCredentials();
107
109
110 MCNAPI ::cricket::Candidate SanitizeCandidate(::cricket::Candidate const& c) const;
111
112 MCNAPI void SetCandidateFilter(uint filter);
113
114 MCNAPI bool SetConfiguration(
115 ::std::set<::rtc::SocketAddress> const& stun_servers,
116 ::std::vector<::cricket::RelayServerConfig> const& turn_servers,
117 ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const& mapped_ports,
118 int candidate_pool_size,
119 ::webrtc::PortPrunePolicy turn_port_prune_policy,
120 ::webrtc::TurnCustomizer* turn_customizer,
121 ::std::optional<int> const& stun_candidate_keepalive_interval
122 );
123
124 MCNAPI ::std::unique_ptr<::cricket::PortAllocatorSession> TakePooledSession(
125 ::std::string_view content_name,
126 int component,
127 ::std::string_view ice_ufrag,
128 ::std::string_view ice_pwd
129 );
130 // NOLINTEND
131
132public:
133 // constructor thunks
134 // NOLINTBEGIN
135 MCNAPI void* $ctor();
136 // NOLINTEND
137
138public:
139 // destructor thunk
140 // NOLINTBEGIN
141 MCNAPI void $dtor();
142 // NOLINTEND
143
144public:
145 // virtual function thunks
146 // NOLINTBEGIN
147 MCNAPI void $Initialize();
148
150
151 MCNAPI void $SetVpnPreference(::webrtc::VpnPreference preference);
152
153 MCNAPI void $SetVpnList(::std::vector<::rtc::NetworkMask> const& vpn_list);
154
155 MCNAPI void $GetCandidateStatsFromPooledSessions(::std::vector<::cricket::CandidateStats>* candidate_stats_list);
156
157 MCNAPI bool $MdnsObfuscationEnabled() const;
158 // NOLINTEND
159
160public:
161 // vftables
162 // NOLINTBEGIN
163 MCNAPI static void** $vftable();
164 // NOLINTEND
165};
166
167} // namespace cricket
Definition Candidate.h:15
Definition PortAllocator.h:25
MCAPI::cricket::Candidate SanitizeCandidate(::cricket::Candidate const &c) const
MCAPI ::std::vector<::cricket::IceParameters > GetPooledIceCredentials()
MCAPI bool SetConfiguration(::std::set<::rtc::SocketAddress > const &stun_servers, ::std::vector<::cricket::RelayServerConfig > const &turn_servers, ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress > > const &mapped_ports, int candidate_pool_size, ::webrtc::PortPrunePolicy turn_port_prune_policy, ::webrtc::TurnCustomizer *turn_customizer, ::std::optional< int > const &stun_candidate_keepalive_interval)
MCAPI void DiscardCandidatePool()
MCAPI void SetCandidateFilter(uint filter)
MCAPI void $SetVpnPreference(::webrtc::VpnPreference preference)
MCAPI void $SetVpnList(::std::vector<::rtc::NetworkMask > const &vpn_list)
MCAPI void $GetCandidateStatsFromPooledSessions(::std::vector<::cricket::CandidateStats > *candidate_stats_list)
MCAPI void * $ctor()
MCAPI void $Initialize()
MCAPI ::std::_Vector_const_iterator< ::std::_Vector_val<::std::_Simple_types<::std::unique_ptr<::cricket::PortAllocatorSession > > > > FindPooledSession(::cricket::IceParameters const *ice_credentials) const
MCAPI ::std::unique_ptr<::cricket::PortAllocatorSession > CreateSession(::std::string_view content_name, int component, ::std::string_view ice_ufrag, ::std::string_view ice_pwd)
MCAPI ::std::unique_ptr<::cricket::PortAllocatorSession > TakePooledSession(::std::string_view content_name, int component, ::std::string_view ice_ufrag, ::std::string_view ice_pwd)
MCAPI void $set_restrict_ice_credentials_change(bool value)
MCAPI bool $MdnsObfuscationEnabled() const
static MCAPI void ** $vftable()
Definition has_slots.h:8
Definition TurnCustomizer.h:13
Definition IceParameters.h:12
Definition Alias.h:14