96 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner>> mNetworkSessionOwner;
97 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::NetworkConnection>>> mConnections;
98 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LocalConnector>> mLocalConnector;
99 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::RemoteConnector>> mRemoteConnector;
100 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ServerLocator>> mServerLocator;
101 ::ll::TypedStorage<8, 80, ::std::recursive_mutex> mConnectionsMutex;
102 ::ll::TypedStorage<8, 8, uint64> mCurrentConnection;
103 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>>> mReceiveTask;
104 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mReceiveTaskGroup;
105 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::IPacketObserver>> mPacketObserver;
106 ::ll::TypedStorage<8, 8, ::Scheduler&> mMainThread;
107 ::ll::TypedStorage<8, 32, ::std::string> mReceiveBuffer;
108 ::ll::TypedStorage<8, 32, ::std::string> mSendBuffer;
109 ::ll::TypedStorage<8, 80, ::BinaryStream> mSendStream;
110 ::ll::TypedStorage<8, 32, ::std::unique_ptr<::NetworkSystem::IncomingPacketQueue>[4]> mIncomingPackets;
111 ::ll::TypedStorage<1, 1, bool> mUseIPv6Only;
112 ::ll::TypedStorage<2, 2, ushort> mDefaultGamePort;
113 ::ll::TypedStorage<2, 2, ushort> mDefaultGamePortv6;
114 ::ll::TypedStorage<1, 1, bool> mIsLanDiscoveryEnabled;
115 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::NetworkStatistics>> mNetworkStatistics;
116 ::ll::TypedStorage<1, 1, bool> mEnablePacketRateLimiting;
117 ::ll::TypedStorage<1, 1, bool> mWebsocketsEnabled;
118 ::ll::TypedStorage<4, 24, ::NetworkSettingOptions> mNetworkSettingOptions;
119 ::ll::TypedStorage<1, 1, bool> mRawRecordingEnabled;
132 virtual bool useIPv4Only() const ;
135 virtual
bool useIPv6Only() const ;
138 virtual ushort getDefaultGamePort() const ;
141 virtual ushort getDefaultGamePortv6() const ;
147 virtual
void _onDisable() ;
150 virtual
void _onEnable() ;
161 virtual
void onConnectionClosed(
163 ::Connection::DisconnectFailReason const discoReason,
164 ::
std::
string const& reasonMessage,
165 bool skipDisconnectMessage
169 virtual
void onAllConnectionsClosed(::Connection::DisconnectFailReason, ::
std::
string const&,
bool) ;
173 onAllRemoteConnectionsClosed(::Connection::DisconnectFailReason, ::
std::
string const&,
bool) ;
176 virtual
void onOutgoingConnectionFailed(
177 ::Connection::DisconnectFailReason discoReason,
178 ::
std::
string const& reasonMessage
182 virtual
void onWebsocketRequest(
183 ::
std::
string const& serverAddress,
184 ::
std::
string const& payload,
185 ::
std::function<
void()> errorCallback
194 MCAPI
bool _isUsingNetherNetTransportLayer() const;
199 _sortAndPacketizeEvents(::
NetworkConnection& connection, ::
std::chrono::steady_clock::time_point endTime);
201 MCAPI
void disconnect();
207 MCAPI ::Bedrock::NotNullNonOwnerPtr<::
RemoteConnector> getRemoteConnector();
209 MCAPI
bool isServer() const;
211 MCAPI
void runEvents(
bool networkIsCritical);
217 MCAPI
void setDevConnectionQuality(::DevConnectionQuality quality);
237 MCFOLD
bool $useIPv4Only() const;
239 MCAPI
bool $useIPv6Only() const;
241 MCAPI ushort $getDefaultGamePort() const;
243 MCAPI ushort $getDefaultGamePortv6() const;
245 MCAPI
void $_onDisable();
247 MCAPI
void $_onEnable();
253 MCAPI
void $onConnectionClosed(
255 ::Connection::DisconnectFailReason const discoReason,
256 ::
std::
string const& reasonMessage,
257 bool skipDisconnectMessage
261 $onOutgoingConnectionFailed(::Connection::DisconnectFailReason discoReason, ::
std::
string const& reasonMessage);
263 MCAPI
void $onWebsocketRequest(
264 ::
std::
string const& serverAddress,
265 ::
std::
string const& payload,
266 ::
std::function<
void()> errorCallback