102 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner>> mNetworkSessionOwner;
103 ::ll::TypedStorage<8, 80, ::std::recursive_mutex> mConnectionsMutex;
104 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::NetworkConnection>>> mConnections;
105 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LocalConnector>> mLocalConnector;
106 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder>> mPacketGroupBuilder;
107 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::RemoteConnector>> mRemoteConnector;
108 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ServerLocator>> mServerLocator;
109 ::ll::TypedStorage<8, 8, uint64> mCurrentConnection;
110 ::ll::TypedStorage<8, 16, ::Bedrock::Threading::Async<void>> mReceiveTask;
111 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mReceiveTaskGroup;
112 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::IPacketObserver>> mPacketObserver;
113 ::ll::TypedStorage<8, 8, ::Scheduler&> mMainThread;
114 ::ll::TypedStorage<8, 32, ::std::string> mReceiveBuffer;
115 ::ll::TypedStorage<8, 32, ::std::string> mSendBuffer;
116 ::ll::TypedStorage<8, 80, ::BinaryStream> mSendStream;
117 ::ll::TypedStorage<8, 32, ::std::unique_ptr<::NetworkSystem::IncomingPacketQueue>[4]> mIncomingPackets;
118 ::ll::TypedStorage<1, 1, bool> mUseIPv6Only;
119 ::ll::TypedStorage<2, 2, ushort> mDefaultGamePort;
120 ::ll::TypedStorage<2, 2, ushort> mDefaultGamePortv6;
121 ::ll::TypedStorage<1, 1, bool> mIsLanDiscoveryEnabled;
122 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::NetworkStatistics>> mNetworkStatistics;
123 ::ll::TypedStorage<1, 1, bool> mWebsocketsEnabled;
124 ::ll::TypedStorage<4, 20, ::NetworkSettingOptions> mNetworkSettingOptions;
125 ::ll::TypedStorage<1, 1, bool> mRawRecordingEnabled;
126 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::cereal::ReflectionCtx>>> mReflectionCtx;
127 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::IPacketSerializationController>>> mPacketOverrides;
131 ::gsl::not_null<::std::unique_ptr<
134 mSessionSummaryPublisher;
150 virtual bool useIPv4Only() const ;
153 virtual
bool useIPv6Only() const ;
156 virtual ushort getDefaultGamePort() const ;
159 virtual ushort getDefaultGamePortv6() const ;
165 virtual
void _onDisable() ;
168 virtual
void _onEnable() ;
179 virtual
void onConnectionClosed(
181 ::Connection::DisconnectFailReason const discoReason,
182 ::
std::
string const& reasonMessage,
183 bool skipDisconnectMessage,
184 ::Json::Value const& sessionSummary
188 virtual
void onAllConnectionsClosed(
189 ::Connection::DisconnectFailReason discoReason,
190 ::
std::
string const& reasonMessage,
191 bool skipDisconnectMessage
195 virtual
void onAllRemoteConnectionsClosed(
196 ::Connection::DisconnectFailReason discoReason,
197 ::
std::
string const& reasonMessage,
198 bool skipDisconnectMessage
202 virtual
void onOutgoingConnectionFailed(
203 ::Connection::DisconnectFailReason discoReason,
204 ::
std::
string const& reasonMessage
208 virtual
void onWebsocketRequest(
209 ::
std::
string const& serverAddress,
210 ::
std::
string const& payload,
211 ::
std::function<
void()> errorCallback
223 _sortAndPacketizeEvents(::
NetworkConnection& connection, ::
std::chrono::steady_clock::time_point endTime);
225 MCAPI
void disconnect();
231 MCAPI ::Bedrock::NotNullNonOwnerPtr<::
RemoteConnector> getRemoteConnector();
233 MCAPI
bool isServer() const;
235 MCAPI
void runEvents(
bool networkIsCritical);
241 MCAPI
void setDevConnectionQuality(::DevConnectionQuality quality);
261 MCFOLD
bool $useIPv4Only() const;
263 MCAPI
bool $useIPv6Only() const;
265 MCAPI ushort $getDefaultGamePort() const;
267 MCAPI ushort $getDefaultGamePortv6() const;
269 MCAPI
void $_onDisable();
271 MCAPI
void $_onEnable();
277 MCAPI
void $onConnectionClosed(
279 ::Connection::DisconnectFailReason const discoReason,
280 ::
std::
string const& reasonMessage,
281 bool skipDisconnectMessage,
282 ::Json::Value const& sessionSummary
285 MCAPI
void $onAllConnectionsClosed(
286 ::Connection::DisconnectFailReason discoReason,
287 ::
std::
string const& reasonMessage,
288 bool skipDisconnectMessage
291 MCAPI
void $onAllRemoteConnectionsClosed(
292 ::Connection::DisconnectFailReason discoReason,
293 ::
std::
string const& reasonMessage,
294 bool skipDisconnectMessage
298 $onOutgoingConnectionFailed(::Connection::DisconnectFailReason discoReason, ::
std::
string const& reasonMessage);
300 MCAPI
void $onWebsocketRequest(
301 ::
std::
string const& serverAddress,
302 ::
std::
string const& payload,
303 ::
std::function<
void()> errorCallback