LeviLamina
Loading...
Searching...
No Matches
PortAllocatorSession.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
9// auto generated forward declare list
10// clang-format off
11namespace cricket { class Candidate; }
12namespace cricket { class CandidateStats; }
13namespace cricket { class PortInterface; }
14// clang-format on
15
16namespace cricket {
17
18class PortAllocatorSession : public ::sigslot::has_slots<::sigslot::single_threaded> {
19public:
20 // member variables
21 // NOLINTBEGIN
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 PortAllocatorSession& operator=(PortAllocatorSession const&);
41 PortAllocatorSession(PortAllocatorSession const&);
42 PortAllocatorSession();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual ~PortAllocatorSession() /*override*/;
48
49 virtual void SetCandidateFilter(uint filter) = 0;
50
51 virtual void StartGettingPorts() = 0;
52
53 virtual void StopGettingPorts() = 0;
54
55 virtual bool IsGettingPorts() = 0;
56
57 virtual void ClearGettingPorts() = 0;
58
59 virtual bool IsCleared() const;
60
61 virtual bool IsStopped() const;
62
63 virtual void RegatherOnFailedNetworks();
64
65 virtual void GetCandidateStatsFromReadyPorts(::std::vector<::cricket::CandidateStats>* candidate_stats_list) const;
66
67 virtual void SetStunKeepaliveIntervalForReadyPorts(::std::optional<int> const& stun_keepalive_interval);
68
69 virtual ::std::vector<::cricket::PortInterface*> ReadyPorts() const = 0;
70
71 virtual ::std::vector<::cricket::Candidate> ReadyCandidates() const = 0;
72
73 virtual bool CandidatesAllocationDone() const = 0;
74
75 virtual void PruneAllPorts();
76
77 virtual uint generation();
78
79 virtual void set_generation(uint generation);
80
81 virtual void UpdateIceParametersInternal();
82 // NOLINTEND
83
84public:
85 // member functions
86 // NOLINTBEGIN
88 ::std::string_view content_name,
89 int component,
90 ::std::string_view ice_ufrag,
91 ::std::string_view ice_pwd,
92 uint flags
93 );
94
95 MCNAPI void SetIceParameters(
96 ::std::string_view content_name,
97 int component,
98 ::std::string_view ice_ufrag,
99 ::std::string_view ice_pwd
100 );
101 // NOLINTEND
102
103public:
104 // constructor thunks
105 // NOLINTBEGIN
106 MCNAPI void* $ctor(
107 ::std::string_view content_name,
108 int component,
109 ::std::string_view ice_ufrag,
110 ::std::string_view ice_pwd,
111 uint flags
112 );
113 // NOLINTEND
114
115public:
116 // destructor thunk
117 // NOLINTBEGIN
118 MCNAPI void $dtor();
119 // NOLINTEND
120
121public:
122 // virtual function thunks
123 // NOLINTBEGIN
124 MCNAPI bool $IsCleared() const;
125
126 MCNAPI bool $IsStopped() const;
127
129
130 MCNAPI void $GetCandidateStatsFromReadyPorts(::std::vector<::cricket::CandidateStats>* candidate_stats_list) const;
131
132 MCNAPI void $SetStunKeepaliveIntervalForReadyPorts(::std::optional<int> const& stun_keepalive_interval);
133
134 MCNAPI void $PruneAllPorts();
135
136 MCNAPI uint $generation();
137
138 MCNAPI void $set_generation(uint generation);
139
141
142
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
148 MCNAPI static void** $vftable();
149 // NOLINTEND
150};
151
152} // namespace cricket
Definition CandidateStats.h:7
Definition Candidate.h:15
MCAPI bool $IsCleared() const
MCAPI void $SetStunKeepaliveIntervalForReadyPorts(::std::optional< int > const &stun_keepalive_interval)
MCAPI void $GetCandidateStatsFromReadyPorts(::std::vector<::cricket::CandidateStats > *candidate_stats_list) const
MCAPI bool $IsStopped() const
MCAPI void SetIceParameters(::std::string_view content_name, int component, ::std::string_view ice_ufrag, ::std::string_view ice_pwd)
MCAPI void $RegatherOnFailedNetworks()
MCAPI void * $ctor(::std::string_view content_name, int component, ::std::string_view ice_ufrag, ::std::string_view ice_pwd, uint flags)
static MCAPI void ** $vftable()
MCAPI void $set_generation(uint generation)
MCAPI void $UpdateIceParametersInternal()
MCAPI PortAllocatorSession(::std::string_view content_name, int component, ::std::string_view ice_ufrag, ::std::string_view ice_pwd, uint flags)
Definition PortInterface.h:29
Definition has_slots.h:8
Definition Alias.h:14