LeviLamina
Loading...
Searching...
No Matches
NatPunchthroughClient.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/raknet/PI2_LostConnectionReason.h"
7#include "mc/deps/raknet/PluginInterface2.h"
8#include "mc/deps/raknet/PluginReceiveResult.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace RakNet { struct Packet; }
13namespace RakNet { struct RakNetGUID; }
14namespace RakNet { struct SystemAddress; }
15// clang-format on
16
17namespace RakNet {
18
20public:
21 // NatPunchthroughClient inner types declare
22 // clang-format off
23 struct AddrAndGuid;
24 struct DSTAndFac;
25 struct SendPing;
26 // clang-format on
27
28 // NatPunchthroughClient inner types define
29 struct SendPing {
30 public:
31 // SendPing inner types define
32 enum class TestMode : int {
33 TestingInternalIps = 0,
34 WaitingForInternalIpsResponse = 1,
35 TestingExternalIpsFacilitatorPortToFacilitatorPort = 2,
36 TestingExternalIps1024ToFacilitatorPort = 3,
37 TestingExternalIpsFacilitatorPortTo1024 = 4,
38 TestingExternalIps1024To1024 = 5,
39 WaitingAfterAllAttempts = 6,
40 PunchingFixedPort = 7,
41 };
42
43 public:
44 // member variables
45 // NOLINTBEGIN
58 // NOLINTEND
59
60 public:
61 // prevent constructor by default
62 SendPing& operator=(SendPing const&);
63 SendPing(SendPing const&);
64 SendPing();
65 };
66
67 struct AddrAndGuid {
68 public:
69 // member variables
70 // NOLINTBEGIN
73 // NOLINTEND
74
75 public:
76 // prevent constructor by default
77 AddrAndGuid& operator=(AddrAndGuid const&);
80 };
81
82 struct DSTAndFac {
83 public:
84 // member variables
85 // NOLINTBEGIN
88 // NOLINTEND
89
90 public:
91 // prevent constructor by default
92 DSTAndFac& operator=(DSTAndFac const&);
93 DSTAndFac(DSTAndFac const&);
94 DSTAndFac();
95 };
96
97public:
98 // member variables
99 // NOLINTBEGIN
109 // NOLINTEND
110
111public:
112 // prevent constructor by default
116
117public:
118 // virtual functions
119 // NOLINTBEGIN
120 // vIndex: 0
121 virtual ~NatPunchthroughClient() /*override*/ = default;
122
123 // vIndex: 3
124 virtual void Update() /*override*/;
125
126 // vIndex: 4
127 virtual ::RakNet::PluginReceiveResult OnReceive(::RakNet::Packet*) /*override*/;
128
129 // vIndex: 8
130 virtual void OnNewConnection(::RakNet::SystemAddress const&, ::RakNet::RakNetGUID, bool) /*override*/;
131
132 // vIndex: 7
133 virtual void OnClosedConnection(
136 ::RakNet::PI2_LostConnectionReason
137 ) /*override*/;
138
139 // vIndex: 1
140 virtual void OnAttach() /*override*/;
141
142 // vIndex: 2
143 virtual void OnDetach() /*override*/;
144
145 // vIndex: 6
146 virtual void OnRakPeerShutdown() /*override*/;
147 // NOLINTEND
148
149public:
150 // destructor thunk
151 // NOLINTBEGIN
152
153 // NOLINTEND
154
155public:
156 // virtual function thunks
157 // NOLINTBEGIN
158
159 // NOLINTEND
160};
161
162} // namespace RakNet
Definition Packet.h:26
Definition NatPunchthroughClient.h:19
Definition PluginInterface2.h:20
Definition NatPunchthroughClient.h:67
Definition NatPunchthroughClient.h:82
Definition NatPunchthroughClient.h:29
Definition Packet.h:7
Definition RakNetGUID.h:7
Definition SystemAddress.h:7
Definition Alias.h:14