LeviLamina
Loading...
Searching...
No Matches
RakPeerInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/raknet/ConnectionAttemptResult.h"
7#include "mc/deps/raknet/ConnectionState.h"
8#include "mc/deps/raknet/PacketPriority.h"
9#include "mc/deps/raknet/PacketReliability.h"
10#include "mc/deps/raknet/StartupResult.h"
11#include "mc/deps/raknet/data_structures/List.h"
12
13// auto generated forward declare list
14// clang-format off
15namespace RakNet { class BitStream; }
16namespace RakNet { class PluginInterface2; }
17namespace RakNet { class RakNetSocket2; }
18namespace RakNet { class ShadowBanList; }
19namespace RakNet { struct AddressOrGUID; }
20namespace RakNet { struct NetworkAdapter; }
21namespace RakNet { struct Packet; }
22namespace RakNet { struct PublicKey; }
23namespace RakNet { struct RNS2RecvStruct; }
24namespace RakNet { struct RakNetGUID; }
25namespace RakNet { struct RakNetStatistics; }
26namespace RakNet { struct SocketDescriptor; }
27namespace RakNet { struct SystemAddress; }
28// clang-format on
29
30namespace RakNet {
31
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 // vIndex: 0
37 virtual ~RakPeerInterface();
38
39 // vIndex: 1
40 virtual void InitializeConfiguration(::std::unique_ptr<::RakNet::ShadowBanList>) = 0;
41
42 // vIndex: 2
43 virtual ::RakNet::StartupResult Startup(uint, ::RakNet::SocketDescriptor*, uint, int) = 0;
44
45 // vIndex: 3
46 virtual bool InitializeSecurity(char const*, char const*, bool) = 0;
47
48 // vIndex: 4
49 virtual void DisableSecurity() = 0;
50
51 // vIndex: 5
52 virtual void AddToSecurityExceptionList(char const*) = 0;
53
54 // vIndex: 6
55 virtual void RemoveFromSecurityExceptionList(char const*) = 0;
56
57 // vIndex: 7
58 virtual bool IsInSecurityExceptionList(char const*) = 0;
59
60 // vIndex: 8
61 virtual void SetMaximumIncomingConnections(ushort) = 0;
62
63 // vIndex: 9
64 virtual uint GetMaximumIncomingConnections() const = 0;
65
66 // vIndex: 10
67 virtual ushort NumberOfConnections() const = 0;
68
69 // vIndex: 11
70 virtual void SetIncomingPassword(char const*, int) = 0;
71
72 // vIndex: 12
73 virtual void GetIncomingPassword(char*, int*) = 0;
74
75 // vIndex: 13
76 virtual ::RakNet::ConnectionAttemptResult
77 Connect(char const*, ushort, char const*, int, ::RakNet::PublicKey*, uint, uint, uint, uint) = 0;
78
79 // vIndex: 14
80 virtual ::RakNet::ConnectionAttemptResult ConnectWithSocket(
81 char const*,
82 ushort,
83 char const*,
84 int,
87 uint,
88 uint,
89 uint
90 ) = 0;
91
92 // vIndex: 15
93 virtual void Shutdown(uint, uchar, ::PacketPriority) = 0;
94
95 // vIndex: 16
96 virtual bool SetApplicationHandshakeCompleted(::RakNet::AddressOrGUID) = 0;
97
98 // vIndex: 17
99 virtual bool IsActive() const = 0;
100
101 // vIndex: 18
102 virtual bool GetConnectionList(::RakNet::SystemAddress*, ushort*) const = 0;
103
104 // vIndex: 19
105 virtual uint GetNextSendReceipt() = 0;
106
107 // vIndex: 20
108 virtual uint IncrementNextSendReceipt() = 0;
109
110 // vIndex: 22
111 virtual uint Send(
112 char const*,
113 int const,
114 ::PacketPriority,
115 ::PacketReliability,
116 char,
118 bool,
119 uint
120 ) = 0;
121
122 // vIndex: 21
123 virtual uint Send(
124 ::RakNet::BitStream const*,
125 ::PacketPriority,
126 ::PacketReliability,
127 char,
129 bool,
130 uint
131 ) = 0;
132
133 // vIndex: 23
134 virtual void SendLoopback(char const*, int const) = 0;
135
136 // vIndex: 24
137 virtual uint SendList(
138 char const**,
139 int const*,
140 int const,
141 ::PacketPriority,
142 ::PacketReliability,
143 char,
145 bool,
146 uint
147 ) = 0;
148
149 // vIndex: 25
150 virtual ::RakNet::Packet* Receive() = 0;
151
152 // vIndex: 26
153 virtual void DeallocatePacket(::RakNet::Packet*) = 0;
154
155 // vIndex: 27
156 virtual uint GetMaximumNumberOfPeers() const = 0;
157
158 // vIndex: 28
159 virtual void CloseConnection(::RakNet::AddressOrGUID const, bool, uchar, ::PacketPriority) = 0;
160
161 // vIndex: 29
162 virtual ::RakNet::ConnectionState GetConnectionState(::RakNet::AddressOrGUID const) = 0;
163
164 // vIndex: 30
165 virtual void CancelConnectionAttempt(::RakNet::SystemAddress const) = 0;
166
167 // vIndex: 31
168 virtual int GetIndexFromSystemAddress(::RakNet::SystemAddress const) const = 0;
169
170 // vIndex: 32
171 virtual ::RakNet::SystemAddress GetSystemAddressFromIndex(uint) = 0;
172
173 // vIndex: 33
174 virtual ::RakNet::RakNetGUID GetGUIDFromIndex(uint) = 0;
175
176 // vIndex: 34
177 virtual void
179 const = 0;
180
181 // vIndex: 35
182 virtual void AddToBanList(char const*, uint) = 0;
183
184 // vIndex: 36
185 virtual void RemoveFromBanList(char const*) = 0;
186
187 // vIndex: 37
188 virtual void ClearBanList() = 0;
189
190 // vIndex: 38
191 virtual bool IsBanned(char const*) = 0;
192
193 // vIndex: 39
194 virtual void SetLimitIPConnectionFrequency(bool) = 0;
195
196 // vIndex: 41
197 virtual void Ping(::RakNet::SystemAddress const) = 0;
198
199 // vIndex: 40
200 virtual bool Ping(char const*, ushort, bool, uint) = 0;
201
202 // vIndex: 42
203 virtual void SendNatTraversalMessage(::RakNet::SystemAddress const) = 0;
204
205 // vIndex: 43
206 virtual int GetAveragePing(::RakNet::AddressOrGUID const) = 0;
207
208 // vIndex: 44
209 virtual int GetLastPing(::RakNet::AddressOrGUID const) const = 0;
210
211 // vIndex: 45
212 virtual int GetLowestPing(::RakNet::AddressOrGUID const) const = 0;
213
214 // vIndex: 46
215 virtual void SetOccasionalPing(bool) = 0;
216
217 // vIndex: 47
218 virtual uint64 GetClockDifferential(::RakNet::AddressOrGUID const) = 0;
219
220 // vIndex: 48
221 virtual void SetAllowUnconnectedPings(bool) = 0;
222
223 // vIndex: 49
224 virtual bool GetAllowUnconnectedPings() const = 0;
225
226 // vIndex: 50
227 virtual void SetOfflinePingResponse(char const*, uint const) = 0;
228
229 // vIndex: 51
230 virtual void GetOfflinePingResponse(char**, uint*) = 0;
231
232 // vIndex: 52
233 virtual ::RakNet::SystemAddress GetInternalID(::RakNet::SystemAddress const, int const) const = 0;
234
235 // vIndex: 53
236 virtual void SetInternalID(::RakNet::SystemAddress, int) = 0;
237
238 // vIndex: 54
239 virtual ::RakNet::SystemAddress GetExternalID(::RakNet::SystemAddress const) const = 0;
240
241 // vIndex: 55
242 virtual ::RakNet::RakNetGUID const GetMyGUID() const = 0;
243
244 // vIndex: 56
245 virtual void resetMyGUID() = 0;
246
247 // vIndex: 57
248 virtual ::RakNet::SystemAddress GetMyBoundAddress(int const) = 0;
249
250 // vIndex: 58
251 virtual ::RakNet::RakNetGUID const& GetGuidFromSystemAddress(::RakNet::SystemAddress const) const = 0;
252
253 // vIndex: 59
254 virtual ::RakNet::SystemAddress GetSystemAddressFromGuid(::RakNet::RakNetGUID const) const = 0;
255
256 // vIndex: 60
257 virtual bool GetClientPublicKeyFromSystemAddress(::RakNet::SystemAddress const, char*) const = 0;
258
259 // vIndex: 61
260 virtual void SetTimeoutTime(uint, ::RakNet::SystemAddress const) = 0;
261
262 // vIndex: 62
263 virtual uint GetTimeoutTime(::RakNet::SystemAddress const) = 0;
264
265 // vIndex: 63
266 virtual int GetMTUSize(::RakNet::SystemAddress const) const = 0;
267
268 // vIndex: 64
269 virtual uint GetNumberOfAdapters() = 0;
270
271 // vIndex: 65
272 virtual ::RakNet::NetworkAdapter& GetLocalAdapter(uint) = 0;
273
274 // vIndex: 66
275 virtual uint GetNumberOfAddresses() = 0;
276
277 // vIndex: 67
278 virtual char const* GetLocalIP(uint) = 0;
279
280 // vIndex: 68
281 virtual bool IsLocalIP(char const*) = 0;
282
283 // vIndex: 69
284 virtual void AllowConnectionResponseIPMigration(bool) = 0;
285
286 // vIndex: 70
287 virtual bool AdvertiseSystem(char const*, ushort, char const*, int, uint) = 0;
288
289 // vIndex: 71
290 virtual void SetSplitMessageProgressInterval(int) = 0;
291
292 // vIndex: 72
293 virtual int GetSplitMessageProgressInterval() const = 0;
294
295 // vIndex: 73
296 virtual void SetUnreliableTimeout(uint) = 0;
297
298 // vIndex: 74
299 virtual void SendTTL(char const*, ushort, int, uint) = 0;
300
301 // vIndex: 75
302 virtual void AttachPlugin(::RakNet::PluginInterface2*) = 0;
303
304 // vIndex: 76
305 virtual void DetachPlugin(::RakNet::PluginInterface2*) = 0;
306
307 // vIndex: 77
308 virtual void PushBackPacket(::RakNet::Packet*, bool) = 0;
309
310 // vIndex: 78
311 virtual void ChangeSystemAddress(::RakNet::RakNetGUID, ::RakNet::SystemAddress const&) = 0;
312
313 // vIndex: 79
314 virtual ::RakNet::Packet* AllocatePacket(uint) = 0;
315
316 // vIndex: 80
317 virtual ::RakNet::RakNetSocket2* GetSocket(::RakNet::SystemAddress const) = 0;
318
319 // vIndex: 81
320 virtual void GetSockets(::DataStructures::List<::RakNet::RakNetSocket2*>&) = 0;
321
322 // vIndex: 82
323 virtual void ReleaseSockets(::DataStructures::List<::RakNet::RakNetSocket2*>&) = 0;
324
325 // vIndex: 83
326 virtual void WriteOutOfBandHeader(::RakNet::BitStream*) = 0;
327
328 // vIndex: 84
329 virtual void SetUserUpdateThread(void (*)(::RakNet::RakPeerInterface*, void*), void*) = 0;
330
331 // vIndex: 85
332 virtual void SetIncomingDatagramEventHandler(bool (*)(::RakNet::RNS2RecvStruct*)) = 0;
333
334 // vIndex: 86
335 virtual void ApplyNetworkSimulator(float, ushort, ushort) = 0;
336
337 // vIndex: 87
338 virtual void SetPerConnectionOutgoingBandwidthLimit(uint) = 0;
339
340 // vIndex: 88
341 virtual bool IsNetworkSimulatorActive() = 0;
342
343 // vIndex: 90
344 virtual ::RakNet::RakNetStatistics* GetStatistics(::RakNet::SystemAddress const, ::RakNet::RakNetStatistics*) = 0;
345
346 // vIndex: 89
347 virtual bool GetStatistics(uint const, ::RakNet::RakNetStatistics*) = 0;
348
349 // vIndex: 91
350 virtual void
352
353 // vIndex: 92
354 virtual uint GetReceiveBufferSize() = 0;
355
356 // vIndex: 93
357 virtual bool RunUpdateCycle(::RakNet::BitStream&) = 0;
358
359 // vIndex: 94
360 virtual bool SendOutOfBand(char const*, ushort, char const*, uint, uint) = 0;
361 // NOLINTEND
362
363public:
364 // static functions
365 // NOLINTBEGIN
366 MCAPI static uint64 Get64BitUniqueRandomNumber();
367 // NOLINTEND
368
369public:
370 // destructor thunk
371 // NOLINTBEGIN
372 MCAPI void $dtor();
373 // NOLINTEND
374
375public:
376 // virtual function thunks
377 // NOLINTBEGIN
378
379 // NOLINTEND
380
381public:
382 // vftables
383 // NOLINTBEGIN
384 MCAPI static void** $vftable();
385 // NOLINTEND
386};
387
388} // namespace RakNet
Definition List.h:8
Definition Packet.h:26
Definition BitStream.h:7
Definition PluginInterface2.h:20
Definition RakNetSocket2.h:12
Definition RakPeerInterface.h:32
Definition AddressOrGUID.h:15
Definition Packet.h:7
Definition PublicKey.h:7
Definition RNS2RecvStruct.h:7
Definition RakNetGUID.h:7
Definition RakNetStatistics.h:7
Definition SocketDescriptor.h:7
Definition SystemAddress.h:7