LeviLamina
Loading...
Searching...
No Matches
BasicIceController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/AdapterType.h"
7#include "mc/external/webrtc/ArrayView.h"
8#include "mc/external/webrtc/IceControllerInterface.h"
9#include "mc/external/webrtc/IceMode.h"
10#include "mc/external/webrtc/IceSwitchReason.h"
11#include "mc/external/webrtc/NominationMode.h"
12
13// auto generated forward declare list
14// clang-format off
15namespace webrtc { class Connection; }
16namespace webrtc { class Network; }
17namespace webrtc { struct IceConfig; }
18namespace webrtc { struct IceControllerFactoryArgs; }
19// clang-format on
20
21namespace webrtc {
22
23class BasicIceController : public ::webrtc::IceControllerInterface {
24public:
25 // member variables
26 // NOLINTBEGIN
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 BasicIceController& operator=(BasicIceController const&);
42 BasicIceController(BasicIceController const&);
43 BasicIceController();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~BasicIceController() /*override*/ = default;
49
50 virtual void SetIceConfig(::webrtc::IceConfig const& config) /*override*/;
51
52 virtual void SetSelectedConnection(::webrtc::Connection const* selected_connection) /*override*/;
53
54 virtual void AddConnection(::webrtc::Connection const* connection) /*override*/;
55
56 virtual void OnConnectionDestroyed(::webrtc::Connection const* connection) /*override*/;
57
58 virtual ::webrtc::ArrayView<::webrtc::Connection const* const> GetConnections() const /*override*/;
59
60 virtual ::webrtc::ArrayView<::webrtc::Connection const*> connections() const /*override*/;
61
62 virtual bool HasPingableConnection() const /*override*/;
63
64 virtual ::webrtc::IceControllerInterface::PingResult SelectConnectionToPing(int64 last_ping_sent_ms) /*override*/;
65
66 virtual bool GetUseCandidateAttr(
67 ::webrtc::Connection const* conn,
68 ::webrtc::NominationMode mode,
69 ::webrtc::IceMode remote_ice_mode
70 ) const /*override*/;
71
72 virtual ::webrtc::IceControllerInterface::SwitchResult
73 ShouldSwitchConnection(::webrtc::IceSwitchReason reason, ::webrtc::Connection const* new_connection) /*override*/;
74
75 virtual ::webrtc::IceControllerInterface::SwitchResult
76 SortAndSwitchConnection(::webrtc::IceSwitchReason reason) /*override*/;
77
78 virtual ::std::vector<::webrtc::Connection const*> PruneConnections() /*override*/;
79
80 virtual ::webrtc::Connection const* FindNextPingableConnection() /*override*/;
81
82 virtual void MarkConnectionPinged(::webrtc::Connection const* conn) /*override*/;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
89
91 ::webrtc::Connection const* a,
92 ::webrtc::Connection const* b,
93 ::std::optional<::webrtc::AdapterType>
94 ) const;
95
97
99 ::webrtc::Connection const* a,
100 ::webrtc::Connection const* b,
101 ::std::optional<int64> receiving_unchanged_threshold,
102 bool* missed_receiving_unchanged_threshold
103 ) const;
104
105 MCNAPI ::webrtc::Connection const* FindOldestConnectionNeedingTriggeredCheck(int64 now);
106
107 MCNAPI ::std::map<::webrtc::Network const*, ::webrtc::Connection const*> GetBestConnectionByNetwork() const;
108
109 MCNAPI ::webrtc::IceControllerInterface::SwitchResult
110 HandleInitialSelectDampening(::webrtc::IceSwitchReason, ::webrtc::Connection const* new_connection);
111
112 MCNAPI bool IsPingable(::webrtc::Connection const* conn, int64 now) const;
113
114 MCNAPI ::webrtc::Connection const*
116
117 MCNAPI bool PresumedWritable(::webrtc::Connection const* conn) const;
118
119 MCNAPI bool WritableConnectionPastPingInterval(::webrtc::Connection const* conn, int64 now) const;
120 // NOLINTEND
121
122public:
123 // constructor thunks
124 // NOLINTBEGIN
125 MCNAPI void* $ctor(::webrtc::IceControllerFactoryArgs const& args);
126 // NOLINTEND
127
128public:
129 // virtual function thunks
130 // NOLINTBEGIN
131 MCNAPI void $SetIceConfig(::webrtc::IceConfig const& config);
132
133 MCNAPI void $SetSelectedConnection(::webrtc::Connection const* selected_connection);
134
135 MCNAPI void $AddConnection(::webrtc::Connection const* connection);
136
137 MCNAPI void $OnConnectionDestroyed(::webrtc::Connection const* connection);
138
139 MCNAPI ::webrtc::ArrayView<::webrtc::Connection const* const> $GetConnections() const;
140
141 MCNAPI ::webrtc::ArrayView<::webrtc::Connection const*> $connections() const;
142
143 MCNAPI bool $HasPingableConnection() const;
144
145 MCNAPI ::webrtc::IceControllerInterface::PingResult $SelectConnectionToPing(int64 last_ping_sent_ms);
146
148 ::webrtc::Connection const* conn,
149 ::webrtc::NominationMode mode,
150 ::webrtc::IceMode remote_ice_mode
151 ) const;
152
153 MCNAPI ::webrtc::IceControllerInterface::SwitchResult
154 $ShouldSwitchConnection(::webrtc::IceSwitchReason reason, ::webrtc::Connection const* new_connection);
155
156 MCNAPI ::webrtc::IceControllerInterface::SwitchResult $SortAndSwitchConnection(::webrtc::IceSwitchReason reason);
157
158 MCNAPI ::std::vector<::webrtc::Connection const*> $PruneConnections();
159
160 MCNAPI ::webrtc::Connection const* $FindNextPingableConnection();
161
163
164
165 // NOLINTEND
166
167public:
168 // vftables
169 // NOLINTBEGIN
170 MCNAPI static void** $vftable();
171 // NOLINTEND
172};
173
174} // namespace webrtc
MCAPI ::webrtc::ArrayView<::webrtc::Connection const * > $connections() const
MCAPI::webrtc::IceControllerInterface::PingResult $SelectConnectionToPing(int64 last_ping_sent_ms)
static MCAPI void ** $vftable()
MCAPI BasicIceController(::webrtc::IceControllerFactoryArgs const &args)
MCAPI bool WritableConnectionPastPingInterval(::webrtc::Connection const *conn, int64 now) const
MCAPI void $SetSelectedConnection(::webrtc::Connection const *selected_connection)
MCAPI int CompareConnections(::webrtc::Connection const *a, ::webrtc::Connection const *b, ::std::optional< int64 > receiving_unchanged_threshold, bool *missed_receiving_unchanged_threshold) const
MCAPI ::std::map<::webrtc::Network const *, ::webrtc::Connection const * > GetBestConnectionByNetwork() const
MCAPI void * $ctor(::webrtc::IceControllerFactoryArgs const &args)
MCAPI int CompareCandidatePairNetworks(::webrtc::Connection const *a, ::webrtc::Connection const *b, ::std::optional<::webrtc::AdapterType >) const
MCAPI::webrtc::Connection const * FindOldestConnectionNeedingTriggeredCheck(int64 now)
MCAPI::webrtc::IceControllerInterface::SwitchResult $ShouldSwitchConnection(::webrtc::IceSwitchReason reason, ::webrtc::Connection const *new_connection)
MCAPI bool $HasPingableConnection() const
MCAPI bool PresumedWritable(::webrtc::Connection const *conn) const
MCAPI ::webrtc::ArrayView<::webrtc::Connection const *const > $GetConnections() const
MCAPI void $MarkConnectionPinged(::webrtc::Connection const *conn)
MCAPI void $AddConnection(::webrtc::Connection const *connection)
MCAPI bool $GetUseCandidateAttr(::webrtc::Connection const *conn, ::webrtc::NominationMode mode, ::webrtc::IceMode remote_ice_mode) const
MCAPI void $SetIceConfig(::webrtc::IceConfig const &config)
MCAPI void $OnConnectionDestroyed(::webrtc::Connection const *connection)
MCAPI ::std::vector<::webrtc::Connection const * > $PruneConnections()
MCAPI bool IsPingable(::webrtc::Connection const *conn, int64 now) const
MCAPI::webrtc::Connection const * MorePingable(::webrtc::Connection const *conn1, ::webrtc::Connection const *conn2)
MCAPI int CompareConnectionCandidates(::webrtc::Connection const *a, ::webrtc::Connection const *b) const
MCAPI::webrtc::IceControllerInterface::SwitchResult $SortAndSwitchConnection(::webrtc::IceSwitchReason reason)
MCAPI::webrtc::IceControllerInterface::SwitchResult HandleInitialSelectDampening(::webrtc::IceSwitchReason, ::webrtc::Connection const *new_connection)
MCAPI::webrtc::Connection const * $FindNextPingableConnection()
Definition Connection.h:35
Definition IceControllerInterface.h:19
Definition Network.h:18
Definition Alias.h:14
Definition IceConfig.h:16
Definition IceControllerFactoryArgs.h:7