LeviLamina
Loading...
Searching...
No Matches
RakPeerHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/raknet/StartupResult.h"
7
8// auto generated forward declare list
9// clang-format off
11namespace RakNet { class RakPeerInterface; }
12namespace RakNet { struct SocketDescriptor; }
13// clang-format on
14
15class RakPeerHelper {
16public:
17 // RakPeerHelper inner types declare
18 // clang-format off
20 // clang-format on
21
22 // RakPeerHelper inner types define
23 enum class IPVersion : int {
24 IPv4 = 0,
25 IPv6 = 1,
26 Count = 2,
27 };
28
29 enum class PeerPurpose : int {
30 Gameplay = 0,
31 LanDiscovery = 1,
32 Count = 2,
33 };
34
36 public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~IPSupportInterface() = default;
40
41 virtual bool useIPv4Only() const = 0;
42
43 virtual bool useIPv6Only() const = 0;
44
45 virtual ushort getDefaultGamePort() const = 0;
46
47 virtual ushort getDefaultGamePortv6() const = 0;
48 // NOLINTEND
49
50 public:
51 // virtual function thunks
52 // NOLINTBEGIN
53
54 // NOLINTEND
55
56 public:
57 // vftables
58 // NOLINTBEGIN
59 MCNAPI static void** $vftable();
60 // NOLINTEND
61 };
62
63public:
64 // member variables
65 // NOLINTBEGIN
66 ::ll::TypedStorage<4, 4, ::RakNet::StartupResult> mResult;
67 ::ll::TypedStorage<4, 8, int[2]> mConnectionIndices;
68 ::ll::TypedStorage<2, 4, ushort[2]> mBoundPorts;
69 ::ll::TypedStorage<8, 8, ::RakPeerHelper::IPSupportInterface&> mIPSupportInterface;
70 // NOLINTEND
71
72public:
73 // prevent constructor by default
74 RakPeerHelper& operator=(RakPeerHelper const&);
75 RakPeerHelper(RakPeerHelper const&);
76 RakPeerHelper();
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCAPI void LogIPSupport(::RakPeerHelper::PeerPurpose purpose);
82
83 MCAPI ::RakNet::StartupResult _startupInternal(
84 ::gsl::not_null<::RakNet::RakPeerInterface*> peer,
85 ::ConnectionDefinition const& definition,
87 int& socketCount,
88 int ipv6Index
89 );
90
91 MCAPI ::RakNet::StartupResult peerStartup(
93 ::ConnectionDefinition const& definition,
94 ::RakPeerHelper::PeerPurpose purpose
95 );
96 // NOLINTEND
97};
Definition RakPeerInterface.h:32
Definition RakPeerHelper.h:35
static MCAPI void ** $vftable()
Definition ConnectionDefinition.h:5
Definition SocketDescriptor.h:7