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
183 MCNAPI void setBroadcastRequestCallback(::std::function<bool(void*, int*)>&& broadcastRequestCallback);
184
186 ::std::function<void(::NetherNet::NetworkID const&, void const*, int)>&& broadcastResponseCallback
187 );
188 // NOLINTEND
189
190public:
191 // constructor thunks
192 // NOLINTBEGIN
193 MCNAPI void* $ctor(
194 ::NetherNetTransportFactory const& factory,
195 ::Connector::ConnectionCallbacks& callbacks,
196 ::std::optional<::NetherNet::NetworkID> networkId
197 );
198 // NOLINTEND
199
200public:
201 // destructor thunk
202 // NOLINTBEGIN
203 MCNAPI void $dtor();
204 // NOLINTEND
205
206public:
207 // virtual function thunks
208 // NOLINTBEGIN
209 MCNAPI bool $host(::ConnectionDefinition const& definition);
210
211 MCNAPI bool $connect(::Social::GameConnectionInfo const&, ::Social::GameConnectionInfo const&);
212
213 MCNAPI void $tick();
214
215 MCNAPI void $runEvents();
216
218
220
222
223 MCNAPI ::TransportLayer $getNetworkType() const;
224
225 MCNAPI void $_onDisable();
226
227 MCNAPI void $_onEnable();
228
229 MCNAPI void $OnSpopViolation();
230
231 MCNAPI void
232 $OnSessionClose(::NetherNet::NetworkID networkID, uint64 sessionId, ::NetherNet::ESessionError sessionError);
233
234 MCNAPI void $OnBroadcastResponseReceived(::NetherNet::NetworkID networkID, void const* pApplicationData, int size);
235
236 MCNAPI bool $OnBroadcastDiscoveryRequestReceivedGetResponse(void* pApplicationData, int* pSize);
237
238 MCNAPI void $OnSessionGetConnectionFlags(::NetherNet::NetworkID, uint* flags);
239 // NOLINTEND
240
241public:
242 // vftables
243 // NOLINTBEGIN
245
247
248 MCNAPI static void** $vftable();
249
250 MCNAPI static void** $vftableForConnector();
251 // NOLINTEND
252};
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 void setBroadcastResponseCallback(::std::function< void(::NetherNet::NetworkID const &, void const *, int)> &&broadcastResponseCallback)
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 &)
MCAPI void * $ctor(::NetherNetTransportFactory const &factory, ::Connector::ConnectionCallbacks &callbacks, ::std::optional<::NetherNet::NetworkID > networkId)
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 setBroadcastRequestCallback(::std::function< bool(void *, int *)> &&broadcastRequestCallback)
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