LeviLamina
Loading...
Searching...
No Matches
NetherNetConnector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/ESessionError.h"
7#include "mc/deps/nether_net/INetherNetTransportInterfaceCallbacks.h"
8#include "mc/network/Connector.h"
9#include "mc/network/RemoteConnector.h"
10#include "mc/network/TransportLayer.h"
11#include "mc/platform/threading/UniqueLock.h"
12
13// auto generated forward declare list
14// clang-format off
19namespace NetherNet { struct NetworkID; }
20namespace Social { class GameConnectionInfo; }
21// clang-format on
22
24public:
25 // NetherNetConnector inner types declare
26 // clang-format off
27 struct DisconnectEvent;
30 // clang-format on
31
32 // NetherNetConnector inner types define
34 public:
35 // member variables
36 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
45
46 public:
47 // member functions
48 // NOLINTBEGIN
50 // NOLINTEND
51
52 public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCNAPI void $dtor();
56 // NOLINTEND
57 };
58
60 public:
61 // member variables
62 // NOLINTBEGIN
64 // NOLINTEND
65
66 public:
67 // prevent constructor by default
71 };
72
74 public:
75 // member variables
76 // NOLINTBEGIN
80 // NOLINTEND
81
82 public:
83 // prevent constructor by default
84 DisconnectEvent& operator=(DisconnectEvent const&);
87 };
88
89public:
90 // member variables
91 // NOLINTBEGIN
101 // NOLINTEND
102
103public:
104 // prevent constructor by default
105 NetherNetConnector& operator=(NetherNetConnector const&);
108
109public:
110 // virtual functions
111 // NOLINTBEGIN
112 // vIndex: 0
113 virtual ~NetherNetConnector() /*override*/;
114
115 // vIndex: 9
116 virtual bool host(::ConnectionDefinition const& definition) /*override*/;
117
118 // vIndex: 10
119 virtual bool connect(::Social::GameConnectionInfo const&, ::Social::GameConnectionInfo const&) /*override*/;
120
121 // vIndex: 12
122 virtual void tick() /*override*/;
123
124 // vIndex: 13
125 virtual void runEvents() /*override*/;
126
127 // vIndex: 16
128 virtual ::NetworkIdentifier getNetworkIdentifier() const /*override*/;
129
130 // vIndex: 15
131 virtual void closeNetworkConnection(::NetworkIdentifier const&) /*override*/;
132
133 // vIndex: 17
134 virtual bool setApplicationHandshakeCompleted(::NetworkIdentifier const&) /*override*/;
135
136 // vIndex: 8
137 virtual ::TransportLayer getNetworkType() const /*override*/;
138
139 // vIndex: 1
140 virtual void _onDisable() /*override*/;
141
142 // vIndex: 2
143 virtual void _onEnable() /*override*/;
144
145 // vIndex: 5
146 virtual void OnSpopViolation() /*override*/;
147
148 // vIndex: 4
149 virtual void OnSessionClose(
150 ::NetherNet::NetworkID networkID,
151 uint64 sessionId,
152 ::NetherNet::ESessionError sessionError
153 ) /*override*/;
154
155 // vIndex: 6
156 virtual void
157 OnBroadcastResponseReceived(::NetherNet::NetworkID networkID, void const* pApplicationData, int size) /*override*/;
158
159 // vIndex: 7
160 virtual bool OnBroadcastDiscoveryRequestReceivedGetResponse(void* pApplicationData, int* pSize) /*override*/;
161
162 // vIndex: 1
163 virtual void OnSessionGetConnectionFlags(::NetherNet::NetworkID, uint* flags) /*override*/;
164 // NOLINTEND
165
166public:
167 // member functions
168 // NOLINTBEGIN
170 ::NetherNetTransportFactory const& factory,
171 ::Connector::ConnectionCallbacks& callbacks,
172 ::std::optional<::NetherNet::NetworkID> networkId
173 );
174
175 MCNAPI ::gsl::not_null<::std::shared_ptr<::WebRTCNetworkPeer>> _getOrCreatePeer(
176 ::NetherNet::NetworkID const& remoteId,
177 uint64 sessionId,
178 ::Bedrock::Threading::UniqueLock<::std::recursive_mutex> const&
179 );
180
182 // NOLINTEND
183
184public:
185 // constructor thunks
186 // NOLINTBEGIN
187 MCNAPI void* $ctor(
188 ::NetherNetTransportFactory const& factory,
189 ::Connector::ConnectionCallbacks& callbacks,
190 ::std::optional<::NetherNet::NetworkID> networkId
191 );
192 // NOLINTEND
193
194public:
195 // destructor thunk
196 // NOLINTBEGIN
197 MCNAPI void $dtor();
198 // NOLINTEND
199
200public:
201 // virtual function thunks
202 // NOLINTBEGIN
203 MCNAPI bool $host(::ConnectionDefinition const& definition);
204
205 MCNAPI bool $connect(::Social::GameConnectionInfo const&, ::Social::GameConnectionInfo const&);
206
207 MCNAPI void $tick();
208
209 MCNAPI void $runEvents();
210
212
214
216
217 MCNAPI ::TransportLayer $getNetworkType() const;
218
219 MCNAPI void $_onDisable();
220
221 MCNAPI void $_onEnable();
222
223 MCNAPI void $OnSpopViolation();
224
225 MCNAPI void
226 $OnSessionClose(::NetherNet::NetworkID networkID, uint64 sessionId, ::NetherNet::ESessionError sessionError);
227
228 MCNAPI void $OnBroadcastResponseReceived(::NetherNet::NetworkID networkID, void const* pApplicationData, int size);
229
230 MCNAPI bool $OnBroadcastDiscoveryRequestReceivedGetResponse(void* pApplicationData, int* pSize);
231
232 MCNAPI void $OnSessionGetConnectionFlags(::NetherNet::NetworkID, uint* flags);
233 // NOLINTEND
234
235public:
236 // vftables
237 // NOLINTBEGIN
239
241
242 MCNAPI static void** $vftable();
243
244 MCNAPI static void** $vftableForConnector();
245 // NOLINTEND
246};
Definition Connector.h:16
Definition NetherNetTransportFactory.h:17
Definition INetherNetTransportInterfaceCallbacks.h:15
Definition NetworkIdentifier.h:10
Definition RemoteConnector.h:19
Definition GameConnectionInfo.h:7
Definition WebRTCNetworkPeer.h:16
STL namespace.
Definition ConnectionDefinition.h:5
Definition Connector.h:24
Definition NetherNetConnector.h:73
Definition NetherNetConnector.h:33
Definition NetherNetConnector.h:59
Definition NetherNetConnector.h:23
MCAPI ::gsl::not_null<::std::shared_ptr<::WebRTCNetworkPeer > > _getOrCreatePeer(::NetherNet::NetworkID const &remoteId, uint64 sessionId, ::Bedrock::Threading::UniqueLock<::std::recursive_mutex > const &)
MCAPI void $OnSessionGetConnectionFlags(::NetherNet::NetworkID, uint *flags)
MCAPI void $OnBroadcastResponseReceived(::NetherNet::NetworkID networkID, void const *pApplicationData, int size)
MCAPI bool $setApplicationHandshakeCompleted(::NetworkIdentifier const &)
MCAPI bool $connect(::Social::GameConnectionInfo const &, ::Social::GameConnectionInfo const &)
static MCAPI void ** $vftableForConnector()
MCAPI::TransportLayer $getNetworkType() const
MCAPI void $closeNetworkConnection(::NetworkIdentifier const &)
MCAPI::NetworkIdentifier $getNetworkIdentifier() const
MCAPI bool $OnBroadcastDiscoveryRequestReceivedGetResponse(void *pApplicationData, int *pSize)
MCAPI void $_onDisable()
MCAPI void $OnSessionClose(::NetherNet::NetworkID networkID, uint64 sessionId, ::NetherNet::ESessionError sessionError)
MCAPI void $tick()
MCAPI void $dtor()
MCAPI void _prepareForNewSession()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
MCAPI void $runEvents()
MCAPI bool $host(::ConnectionDefinition const &definition)
MCAPI void $OnSpopViolation()
static MCAPI void ** $vftableForNetworkEnableDisableListener()
static MCAPI void ** $vftable()
MCAPI void $_onEnable()
Definition Alias.h:14