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*/ = 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 MCNAPI ::std::unique_ptr<::cricket::PortAllocatorSession>
94 CreateSession(::std::string_view, int, ::std::string_view, ::std::string_view);
95
96 MCNAPI void DiscardCandidatePool();
97
98 MCNAPI ::std::_Vector_const_iterator<
99 ::std::_Vector_val<::std::_Simple_types<::std::unique_ptr<::cricket::PortAllocatorSession>>>>
101
102 MCNAPI ::std::vector<::cricket::IceParameters> GetPooledIceCredentials();
103
105
106 MCNAPI ::cricket::Candidate SanitizeCandidate(::cricket::Candidate const&) const;
107
108 MCNAPI void SetCandidateFilter(uint);
109
110 MCNAPI bool SetConfiguration(
111 ::std::set<::rtc::SocketAddress> const&,
112 ::std::vector<::cricket::RelayServerConfig> const&,
113 ::std::vector<::std::pair<::rtc::SocketAddress, ::rtc::SocketAddress>> const&,
114 int,
115 ::webrtc::PortPrunePolicy,
117 ::std::optional<int> const&
118 );
119
120 MCNAPI ::std::unique_ptr<::cricket::PortAllocatorSession>
121 TakePooledSession(::std::string_view, int, ::std::string_view, ::std::string_view);
122 // NOLINTEND
123
124public:
125 // constructor thunks
126 // NOLINTBEGIN
127 MCNAPI void* $ctor();
128 // NOLINTEND
129
130public:
131 // virtual function thunks
132 // NOLINTBEGIN
133
134 // NOLINTEND
135
136public:
137 // vftables
138 // NOLINTBEGIN
139 MCNAPI static void** $vftable();
140 // NOLINTEND
141};
142
143} // namespace cricket
Definition Candidate.h:15
Definition PortAllocator.h:25
MCAPI ::std::vector<::cricket::IceParameters > GetPooledIceCredentials()
MCAPI void DiscardCandidatePool()
MCAPI bool 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 &)
MCAPI ::std::unique_ptr<::cricket::PortAllocatorSession > TakePooledSession(::std::string_view, int, ::std::string_view, ::std::string_view)
MCAPI void SetCandidateFilter(uint)
MCAPI ::std::_Vector_const_iterator< ::std::_Vector_val<::std::_Simple_types<::std::unique_ptr<::cricket::PortAllocatorSession > > > > FindPooledSession(::cricket::IceParameters const *) const
MCAPI void * $ctor()
MCAPI ::std::unique_ptr<::cricket::PortAllocatorSession > CreateSession(::std::string_view, int, ::std::string_view, ::std::string_view)
MCAPI::cricket::Candidate SanitizeCandidate(::cricket::Candidate const &) const
static MCAPI void ** $vftable()
Definition has_slots.h:8
Definition TurnCustomizer.h:13
Definition IceParameters.h:12
Definition Alias.h:14