LeviLamina
Loading...
Searching...
No Matches
PortInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/IceRole.h"
7#include "mc/external/cricket/ProtocolType.h"
8#include "mc/external/rtc/DiffServCodePoint.h"
9#include "mc/external/rtc/Socket.h"
10#include "mc/external/webrtc/IceCandidateType.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace cricket { class Candidate; }
15namespace cricket { class Connection; }
16namespace cricket { class IceMessage; }
17namespace cricket { class StunMessage; }
18namespace cricket { class StunStats; }
19namespace rtc { class Network; }
20namespace rtc { class PacketSocketFactory; }
21namespace rtc { class SocketAddress; }
22namespace rtc { struct PacketOptions; }
23namespace rtc { struct ProxyInfo; }
24namespace webrtc { class TaskQueueBase; }
25// clang-format on
26
27namespace cricket {
28
30public:
31 // PortInterface inner types define
32 enum class CandidateOrigin : int {
33 ThisPort = 0,
34 OtherPort = 1,
35 Message = 2,
36 };
37
38public:
39 // member variables
40 // NOLINTBEGIN
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 PortInterface& operator=(PortInterface const&);
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 // vIndex: 0
56 virtual ~PortInterface() = default;
57
58 // vIndex: 1
59 virtual ::webrtc::IceCandidateType Type() const = 0;
60
61 // vIndex: 2
62 virtual ::rtc::Network const* Network() const = 0;
63
64 // vIndex: 3
65 virtual void SetIceRole(::cricket::IceRole) = 0;
66
67 // vIndex: 4
68 virtual ::cricket::IceRole GetIceRole() const = 0;
69
70 // vIndex: 5
71 virtual void SetIceTiebreaker(uint64) = 0;
72
73 // vIndex: 6
74 virtual uint64 IceTiebreaker() const = 0;
75
76 // vIndex: 7
77 virtual bool SharedSocket() const = 0;
78
79 // vIndex: 8
80 virtual bool SupportsProtocol(::std::string_view) const = 0;
81
82 // vIndex: 9
83 virtual void PrepareAddress() = 0;
84
85 // vIndex: 10
86 virtual ::cricket::Connection* GetConnection(::rtc::SocketAddress const&) = 0;
87
88 // vIndex: 11
89 virtual ::cricket::Connection*
90 CreateConnection(::cricket::Candidate const&, ::cricket::PortInterface::CandidateOrigin) = 0;
91
92 // vIndex: 12
93 virtual int SetOption(::rtc::Socket::Option, int) = 0;
94
95 // vIndex: 13
96 virtual int GetOption(::rtc::Socket::Option, int*) = 0;
97
98 // vIndex: 14
99 virtual int GetError() = 0;
100
101 // vIndex: 15
102 virtual ::cricket::ProtocolType GetProtocol() const = 0;
103
104 // vIndex: 16
105 virtual ::std::vector<::cricket::Candidate> const& Candidates() const = 0;
106
107 // vIndex: 17
108 virtual int SendTo(void const*, uint64, ::rtc::SocketAddress const&, ::rtc::PacketOptions const&, bool) = 0;
109
110 // vIndex: 18
111 virtual void
112 SendBindingErrorResponse(::cricket::StunMessage*, ::rtc::SocketAddress const&, int, ::std::string_view) = 0;
113
114 // vIndex: 19
115 virtual void SubscribePortDestroyed(::std::function<void(::cricket::PortInterface*)>) = 0;
116
117 // vIndex: 20
118 virtual void EnablePortPackets() = 0;
119
120 // vIndex: 21
121 virtual ::std::string ToString() const = 0;
122
123 // vIndex: 22
124 virtual void GetStunStats(::std::optional<::cricket::StunStats>*) = 0;
125
126 // vIndex: 23
127 virtual void DestroyConnection(::cricket::Connection*) = 0;
128
129 // vIndex: 24
130 virtual void DestroyConnectionAsync(::cricket::Connection*) = 0;
131
132 // vIndex: 25
133 virtual ::webrtc::TaskQueueBase* thread() = 0;
134
135 // vIndex: 26
136 virtual ::rtc::PacketSocketFactory* socket_factory() const = 0;
137
138 // vIndex: 27
139 virtual ::std::string const& user_agent() = 0;
140
141 // vIndex: 28
142 virtual ::rtc::ProxyInfo const& proxy() = 0;
143
144 // vIndex: 29
145 virtual uint generation() const = 0;
146
147 // vIndex: 30
148 virtual void set_generation(uint) = 0;
149
150 // vIndex: 31
151 virtual bool send_retransmit_count_attribute() const = 0;
152
153 // vIndex: 32
154 virtual ::std::string const& content_name() const = 0;
155
156 // vIndex: 33
157 virtual void AddPrflxCandidate(::cricket::Candidate const&) = 0;
158
159 // vIndex: 34
160 virtual void UpdateNetworkCost() = 0;
161
162 // vIndex: 35
163 virtual ::rtc::DiffServCodePoint StunDscpValue() const = 0;
164
165 // vIndex: 36
166 virtual bool
167 GetStunMessage(char const*, uint64, ::rtc::SocketAddress const&, ::std::unique_ptr<::cricket::IceMessage>*, ::std::string*) = 0;
168
169 // vIndex: 37
170 virtual bool ParseStunUsername(::cricket::StunMessage const*, ::std::string*, ::std::string*) const = 0;
171
172 // vIndex: 38
173 virtual ::std::string CreateStunUsername(::std::string_view) const = 0;
174
175 // vIndex: 39
176 virtual bool MaybeIceRoleConflict(::rtc::SocketAddress const&, ::cricket::IceMessage*, ::std::string_view) = 0;
177
178 // vIndex: 40
179 virtual short network_cost() const = 0;
180 // NOLINTEND
181
182public:
183 // member functions
184 // NOLINTBEGIN
185 MCAPI PortInterface();
186 // NOLINTEND
187
188public:
189 // constructor thunks
190 // NOLINTBEGIN
191 MCAPI void* $ctor();
192 // NOLINTEND
193
194public:
195 // destructor thunk
196 // NOLINTBEGIN
197
198 // NOLINTEND
199
200public:
201 // virtual function thunks
202 // NOLINTBEGIN
203
204 // NOLINTEND
205
206public:
207 // vftables
208 // NOLINTBEGIN
209 MCAPI static void** $vftable();
210 // NOLINTEND
211};
212
213} // namespace cricket
Definition Candidate.h:15
Definition Connection.h:38
Definition IceMessage.h:11
Definition PortInterface.h:29
Definition StunMessage.h:23
Definition SocketAddress.h:12
Definition Alias.h:14
Definition PacketOptions.h:10