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 GetSystemList(
180 ) const = 0;
181
182 // vIndex: 35
183 virtual void AddToBanList(char const*, uint) = 0;
184
185 // vIndex: 36
186 virtual void RemoveFromBanList(char const*) = 0;
187
188 // vIndex: 37
189 virtual void ClearBanList() = 0;
190
191 // vIndex: 38
192 virtual bool IsBanned(char const*) = 0;
193
194 // vIndex: 39
195 virtual void SetLimitIPConnectionFrequency(bool) = 0;
196
197 // vIndex: 41
198 virtual void Ping(::RakNet::SystemAddress const) = 0;
199
200 // vIndex: 40
201 virtual bool Ping(char const*, ushort, bool, uint) = 0;
202
203 // vIndex: 42
204 virtual void SendNatTraversalMessage(::RakNet::SystemAddress const) = 0;
205
206 // vIndex: 43
207 virtual int GetAveragePing(::RakNet::AddressOrGUID const) = 0;
208
209 // vIndex: 44
210 virtual int GetLastPing(::RakNet::AddressOrGUID const) const = 0;
211
212 // vIndex: 45
213 virtual int GetLowestPing(::RakNet::AddressOrGUID const) const = 0;
214
215 // vIndex: 46
216 virtual void SetOccasionalPing(bool) = 0;
217
218 // vIndex: 47
219 virtual uint64 GetClockDifferential(::RakNet::AddressOrGUID const) = 0;
220
221 // vIndex: 48
222 virtual void SetAllowUnconnectedPings(bool) = 0;
223
224 // vIndex: 49
225 virtual bool GetAllowUnconnectedPings() const = 0;
226
227 // vIndex: 50
228 virtual void SetOfflinePingResponse(char const*, uint const) = 0;
229
230 // vIndex: 51
231 virtual void GetOfflinePingResponse(char**, uint*) = 0;
232
233 // vIndex: 52
234 virtual ::RakNet::SystemAddress GetInternalID(::RakNet::SystemAddress const, int const) const = 0;
235
236 // vIndex: 53
237 virtual void SetInternalID(::RakNet::SystemAddress, int) = 0;
238
239 // vIndex: 54
240 virtual ::RakNet::SystemAddress GetExternalID(::RakNet::SystemAddress const) const = 0;
241
242 // vIndex: 55
243 virtual ::RakNet::RakNetGUID const GetMyGUID() const = 0;
244
245 // vIndex: 56
246 virtual void resetMyGUID() = 0;
247
248 // vIndex: 57
249 virtual ::RakNet::SystemAddress GetMyBoundAddress(int const) = 0;
250
251 // vIndex: 58
252 virtual ::RakNet::RakNetGUID const& GetGuidFromSystemAddress(::RakNet::SystemAddress const) const = 0;
253
254 // vIndex: 59
255 virtual ::RakNet::SystemAddress GetSystemAddressFromGuid(::RakNet::RakNetGUID const) const = 0;
256
257 // vIndex: 60
258 virtual bool GetClientPublicKeyFromSystemAddress(::RakNet::SystemAddress const, char*) const = 0;
259
260 // vIndex: 61
261 virtual void SetTimeoutTime(uint, ::RakNet::SystemAddress const) = 0;
262
263 // vIndex: 62
264 virtual uint GetTimeoutTime(::RakNet::SystemAddress const) = 0;
265
266 // vIndex: 63
267 virtual int GetMTUSize(::RakNet::SystemAddress const) const = 0;
268
269 // vIndex: 64
270 virtual uint GetNumberOfAdapters() = 0;
271
272 // vIndex: 65
273 virtual ::RakNet::NetworkAdapter& GetLocalAdapter(uint) = 0;
274
275 // vIndex: 66
276 virtual uint GetNumberOfAddresses() = 0;
277
278 // vIndex: 67
279 virtual char const* GetLocalIP(uint) = 0;
280
281 // vIndex: 68
282 virtual bool IsLocalIP(char const*) = 0;
283
284 // vIndex: 69
285 virtual void AllowConnectionResponseIPMigration(bool) = 0;
286
287 // vIndex: 70
288 virtual bool AdvertiseSystem(char const*, ushort, char const*, int, uint) = 0;
289
290 // vIndex: 71
291 virtual void SetSplitMessageProgressInterval(int) = 0;
292
293 // vIndex: 72
294 virtual int GetSplitMessageProgressInterval() const = 0;
295
296 // vIndex: 73
297 virtual void SetUnreliableTimeout(uint) = 0;
298
299 // vIndex: 74
300 virtual void SendTTL(char const*, ushort, int, uint) = 0;
301
302 // vIndex: 75
303 virtual void AttachPlugin(::RakNet::PluginInterface2*) = 0;
304
305 // vIndex: 76
306 virtual void DetachPlugin(::RakNet::PluginInterface2*) = 0;
307
308 // vIndex: 77
309 virtual void PushBackPacket(::RakNet::Packet*, bool) = 0;
310
311 // vIndex: 78
312 virtual void ChangeSystemAddress(::RakNet::RakNetGUID, ::RakNet::SystemAddress const&) = 0;
313
314 // vIndex: 79
315 virtual ::RakNet::Packet* AllocatePacket(uint) = 0;
316
317 // vIndex: 80
318 virtual ::RakNet::RakNetSocket2* GetSocket(::RakNet::SystemAddress const) = 0;
319
320 // vIndex: 81
321 virtual void GetSockets(::DataStructures::List<::RakNet::RakNetSocket2*>&) = 0;
322
323 // vIndex: 82
324 virtual void ReleaseSockets(::DataStructures::List<::RakNet::RakNetSocket2*>&) = 0;
325
326 // vIndex: 83
327 virtual void WriteOutOfBandHeader(::RakNet::BitStream*) = 0;
328
329 // vIndex: 84
330 virtual void SetUserUpdateThread(void (*)(::RakNet::RakPeerInterface*, void*), void*) = 0;
331
332 // vIndex: 85
333 virtual void SetIncomingDatagramEventHandler(bool (*)(::RakNet::RNS2RecvStruct*)) = 0;
334
335 // vIndex: 86
336 virtual void ApplyNetworkSimulator(float, ushort, ushort) = 0;
337
338 // vIndex: 87
339 virtual void SetPerConnectionOutgoingBandwidthLimit(uint) = 0;
340
341 // vIndex: 88
342 virtual bool IsNetworkSimulatorActive() = 0;
343
344 // vIndex: 90
345 virtual ::RakNet::RakNetStatistics* GetStatistics(::RakNet::SystemAddress const, ::RakNet::RakNetStatistics*) = 0;
346
347 // vIndex: 89
348 virtual bool GetStatistics(uint const, ::RakNet::RakNetStatistics*) = 0;
349
350 // vIndex: 91
351 virtual void GetStatisticsList(
355 ) = 0;
356
357 // vIndex: 92
358 virtual uint GetReceiveBufferSize() = 0;
359
360 // vIndex: 93
361 virtual bool RunUpdateCycle(::RakNet::BitStream&) = 0;
362
363 // vIndex: 94
364 virtual bool SendOutOfBand(char const*, ushort, char const*, uint, uint) = 0;
365 // NOLINTEND
366
367public:
368 // static functions
369 // NOLINTBEGIN
370 MCNAPI static uint64 Get64BitUniqueRandomNumber();
371 // NOLINTEND
372
373public:
374 // destructor thunk
375 // NOLINTBEGIN
376 MCNAPI void $dtor();
377 // NOLINTEND
378
379public:
380 // virtual function thunks
381 // NOLINTBEGIN
382
383 // NOLINTEND
384
385public:
386 // vftables
387 // NOLINTBEGIN
388 MCNAPI static void** $vftable();
389 // NOLINTEND
390};
391
392} // 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
static MCAPI void ** $vftable()
static MCAPI uint64 Get64BitUniqueRandomNumber()
Definition AddressOrGUID.h:11
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