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();
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 // destructor thunk
52 // NOLINTBEGIN
53 MCFOLD void $dtor();
54 // NOLINTEND
55
56 public:
57 // virtual function thunks
58 // NOLINTBEGIN
59
60 // NOLINTEND
61
62 public:
63 // vftables
64 // NOLINTBEGIN
65 MCNAPI static void** $vftable();
66 // NOLINTEND
67 };
68
69public:
70 // member variables
71 // NOLINTBEGIN
72 ::ll::TypedStorage<4, 4, ::RakNet::StartupResult> mResult;
73 ::ll::TypedStorage<4, 8, int[2]> mConnectionIndices;
74 ::ll::TypedStorage<2, 4, ushort[2]> mBoundPorts;
75 ::ll::TypedStorage<8, 8, ::RakPeerHelper::IPSupportInterface&> mIPSupportInterface;
76 // NOLINTEND
77
78public:
79 // prevent constructor by default
80 RakPeerHelper& operator=(RakPeerHelper const&);
81 RakPeerHelper(RakPeerHelper const&);
82 RakPeerHelper();
83
84public:
85 // member functions
86 // NOLINTBEGIN
87 MCAPI void LogIPSupport(::RakPeerHelper::PeerPurpose purpose);
88
89 MCAPI ::RakNet::StartupResult _startupInternal(
90 ::gsl::not_null<::RakNet::RakPeerInterface*> peer,
91 ::ConnectionDefinition const& definition,
93 int& socketCount,
94 int ipv6Index
95 );
96
97 MCAPI ::RakNet::StartupResult peerStartup(
99 ::ConnectionDefinition const& definition,
100 ::RakPeerHelper::PeerPurpose purpose
101 );
102 // NOLINTEND
103};
Definition RakPeerInterface.h:32
Definition RakPeerHelper.h:35
static MCAPI void ** $vftable()
Definition ConnectionDefinition.h:5
Definition SocketDescriptor.h:7