LeviLamina
Loading...
Searching...
No Matches
ServerNetworkSystem Class Reference
Inheritance diagram for ServerNetworkSystem:

Public Types

enum class  State : int { Enabled = 0 , Disabled = 1 , Uninitialized = 2 }

Public Member Functions

MCAPI ServerNetworkSystem (::Scheduler &receiveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > networkDebugManager, ::Bedrock::NotNullNonOwnerPtr<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::NetworkSettingOptions const &networkSettingOption, ::PortMappingInfo const &portMappingInfo, ::NetherNet::LogSeverity defaultLogSeverity, ::std::optional<::NetherNet::NetworkID > networkId, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService, ::std::optional<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder, ::std::unique_ptr<::IPacketSerializationController > packetController)
MCAPI ::std::unique_ptr<::NetworkStatistics_createNetworkStatistics (::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > const &networkDebugManager)
MCAPI_C ::std::shared_ptr<::SignalingServiceSignInJobcreateSignalingServiceSigninJobIfNeeded (::std::shared_ptr<::SignalingService > signalingService, bool useJsonRpc, ::Bedrock::Threading::Async<::std::optional<::PlayerMessaging::NetworkID > > &&playerMessagingId)
MCAPI::NetworkIdentifier getLocalNetworkId () const
MCAPI::std::string getMultiplayerCorrelationId () const
MCAPI bool host (::ConnectionDefinition const &definition)
MCAPI void reloadPacketLimitConfig (::PacketGroupDefinition::PacketGroupBuilder &&packetGroupBuilder)
MCAPI void * $ctor (::Scheduler &receiveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > networkDebugManager, ::Bedrock::NotNullNonOwnerPtr<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::NetworkSettingOptions const &networkSettingOption, ::PortMappingInfo const &portMappingInfo, ::NetherNet::LogSeverity defaultLogSeverity, ::std::optional<::NetherNet::NetworkID > networkId, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService, ::std::optional<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder, ::std::unique_ptr<::IPacketSerializationController > packetController)
MCAPI void $dtor ()
MCFOLD void * $ctor ()
MCFOLD void * $ctor (::Bedrock::EnableNonOwnerReferences const &)
LLNDAPI NetworkConnectiongetConnectionFromId (NetworkIdentifier const &id)
virtual bool useIPv4Only () const
virtual bool useIPv6Only () const
virtual ushort getDefaultGamePort () const
virtual ushort getDefaultGamePortv6 () const
virtual void _onDisable ()
virtual void _onEnable ()
virtual bool onNewIncomingConnection (::NetworkIdentifier const &id, ::std::shared_ptr<::NetworkPeer > &&peer)
virtual bool onNewOutgoingConnection (::NetworkIdentifier const &id, ::std::shared_ptr<::NetworkPeer > &&peer)
virtual void onConnectionClosed (::NetworkIdentifier const &id, ::Connection::DisconnectFailReason const discoReason, ::std::string const &reasonMessage, bool skipDisconnectMessage, ::Json::Value const &sessionSummary)
virtual void onAllConnectionsClosed (::Connection::DisconnectFailReason, ::std::string const &, bool)
virtual void onAllRemoteConnectionsClosed (::Connection::DisconnectFailReason, ::std::string const &, bool)
virtual void onOutgoingConnectionFailed (::Connection::DisconnectFailReason discoReason, ::std::string const &reasonMessage)
virtual void onWebsocketRequest (::std::string const &serverAddress, ::std::string const &payload, ::std::function< void()> errorCallback)
MCAPI void _sendInternal (::NetworkIdentifier const &id, ::Packet const &packet, ::std::string const &data)
MCAPI bool _sortAndPacketizeEvents (::NetworkConnection &connection, ::std::chrono::steady_clock::time_point endTime)
MCAPI_C void closeConnection (::NetworkIdentifier const &id, ::Connection::DisconnectFailReason discoReason, ::std::string const &reasonMessage)
MCAPI void disconnect ()
MCAPI void enableAsyncFlush (::NetworkIdentifier const &id)
MCAPI::NetworkPeer * getPeerForUser (::NetworkIdentifier const &id)
MCAPI ::Bedrock::NotNullNonOwnerPtr<::RemoteConnectorgetRemoteConnector ()
MCAPI bool isServer () const
MCAPI_C void registerClientInstance (::NetEventCallback &callback, ::SubClientId subID)
MCAPI void runEvents (bool networkIsCritical)
MCAPI void send (::NetworkIdentifier const &id, ::Packet const &packet, ::SubClientId recipientSubId)
MCAPI void sendToMultiple (::std::vector<::NetworkIdentifierWithSubId > const &ids, ::Packet const &packet)
MCAPI void setDevConnectionQuality (::DevConnectionQuality quality)
MCAPI void update (::std::vector<::WeakEntityRef > const *userList)
MCAPI void * $ctor (::NetworkSystem::Dependencies &&deps)
MCFOLD bool $useIPv4Only () const
MCAPI bool $useIPv6Only () const
MCAPI ushort $getDefaultGamePort () const
MCAPI ushort $getDefaultGamePortv6 () const
MCAPI void $_onDisable ()
MCAPI void $_onEnable ()
MCAPI bool $onNewIncomingConnection (::NetworkIdentifier const &id, ::std::shared_ptr<::NetworkPeer > &&peer)
MCAPI bool $onNewOutgoingConnection (::NetworkIdentifier const &id, ::std::shared_ptr<::NetworkPeer > &&peer)
MCAPI void $onConnectionClosed (::NetworkIdentifier const &id, ::Connection::DisconnectFailReason const discoReason, ::std::string const &reasonMessage, bool skipDisconnectMessage, ::Json::Value const &sessionSummary)
MCAPI void $onOutgoingConnectionFailed (::Connection::DisconnectFailReason discoReason, ::std::string const &reasonMessage)
MCAPI void $onWebsocketRequest (::std::string const &serverAddress, ::std::string const &payload, ::std::function< void()> errorCallback)

Static Public Member Functions

static MCAPI ::NetworkSystem::Dependencies _createConstructionDependencies (::ServerNetworkSystem *pThis, ::Scheduler &receiveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::NetherNetTransportFactory const &transportFactory, ::Bedrock::NotNullNonOwnerPtr<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::NetworkSettingOptions const &networkSettingOptions, ::std::optional<::NetherNet::NetworkID > networkId, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService, ::std::unique_ptr<::IPacketSerializationController > packetController)
static MCAPI void ** $vftableForNetworkEnableDisableListener ()
static MCAPI void ** $vftableForConnectionCallbacks ()
static MCAPI void ** $vftable ()
static MCAPI void ** $vftableForIPSupportInterface ()

Public Attributes

::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlockmControlBlock
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > > mNetworkSessionOwner
::ll::TypedStorage< 8, 80, ::std::recursive_mutex > mConnectionsMutex
::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::NetworkConnection > > > mConnections
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::LocalConnector > > mLocalConnector
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::PacketGroupDefinition::PacketGroupBuilder > > mPacketGroupBuilder
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::RemoteConnector > > mRemoteConnector
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ServerLocator > > mServerLocator
::ll::TypedStorage< 8, 8, uint64 > mCurrentConnection
::ll::TypedStorage< 8, 16, ::Bedrock::Threading::Async< void > > mReceiveTask
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::TaskGroup > > mReceiveTaskGroup
::ll::TypedStorage< 8, 24, ::Bedrock::NonOwnerPointer<::IPacketObserver > > mPacketObserver
::ll::TypedStorage< 8, 8, ::Scheduler & > mMainThread
::ll::TypedStorage< 8, 32, ::std::string > mReceiveBuffer
::ll::TypedStorage< 8, 32, ::std::string > mSendBuffer
::ll::TypedStorage< 8, 80, ::BinaryStreammSendStream
::ll::TypedStorage< 8, 32, ::std::unique_ptr<::NetworkSystem::IncomingPacketQueue >[4]> mIncomingPackets
::ll::TypedStorage< 1, 1, bool > mUseIPv6Only
::ll::TypedStorage< 2, 2, ushort > mDefaultGamePort
::ll::TypedStorage< 2, 2, ushort > mDefaultGamePortv6
::ll::TypedStorage< 1, 1, bool > mIsLanDiscoveryEnabled
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::NetworkStatistics > > mNetworkStatistics
::ll::TypedStorage< 1, 1, bool > mWebsocketsEnabled
::ll::TypedStorage< 4, 20, ::NetworkSettingOptionsmNetworkSettingOptions
::ll::TypedStorage< 1, 1, bool > mRawRecordingEnabled
::ll::TypedStorage< 8, 8, ::gsl::not_null<::std::unique_ptr<::cereal::ReflectionCtx > > > mReflectionCtx
::ll::TypedStorage< 8, 8, ::gsl::not_null<::std::unique_ptr<::IPacketSerializationController > > > mPacketOverrides
::ll::TypedStorage< 8, 8, ::gsl::not_null<::std::unique_ptr< ::Bedrock::PubSub::Publisher< void(::Json::Value const &), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > > > mSessionSummaryPublisher
::ll::UntypedStorage< 4, 4 > mUnkaf3b65
::ll::UntypedStorage< 8, 24 > mUnk1d223d

Member Function Documentation

◆ $vftableForNetworkEnableDisableListener()

MCAPI void ** ServerNetworkSystem::$vftableForNetworkEnableDisableListener ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftableForConnectionCallbacks()

MCAPI void ** ServerNetworkSystem::$vftableForConnectionCallbacks ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** ServerNetworkSystem::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftableForIPSupportInterface()

MCAPI void ** ServerNetworkSystem::$vftableForIPSupportInterface ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ useIPv4Only()

virtual bool NetworkSystem::useIPv4Only ( ) const
virtualinherited

◆ useIPv6Only()

virtual bool NetworkSystem::useIPv6Only ( ) const
virtualinherited

◆ getDefaultGamePort()

virtual ushort NetworkSystem::getDefaultGamePort ( ) const
virtualinherited

◆ getDefaultGamePortv6()

virtual ushort NetworkSystem::getDefaultGamePortv6 ( ) const
virtualinherited

◆ _onDisable()

virtual void NetworkSystem::_onDisable ( )
virtualinherited

◆ _onEnable()

virtual void NetworkSystem::_onEnable ( )
virtualinherited

◆ onNewIncomingConnection()

virtual bool NetworkSystem::onNewIncomingConnection ( ::NetworkIdentifier const & id,
::std::shared_ptr<::NetworkPeer > && peer )
virtualinherited

◆ onNewOutgoingConnection()

virtual bool NetworkSystem::onNewOutgoingConnection ( ::NetworkIdentifier const & id,
::std::shared_ptr<::NetworkPeer > && peer )
virtualinherited

◆ onConnectionClosed()

virtual void NetworkSystem::onConnectionClosed ( ::NetworkIdentifier const & id,
::Connection::DisconnectFailReason const discoReason,
::std::string const & reasonMessage,
bool skipDisconnectMessage,
::Json::Value const & sessionSummary )
virtualinherited

◆ onAllConnectionsClosed()

virtual void NetworkSystem::onAllConnectionsClosed ( ::Connection::DisconnectFailReason ,
::std::string const & ,
bool  )
virtualinherited

◆ onAllRemoteConnectionsClosed()

virtual void NetworkSystem::onAllRemoteConnectionsClosed ( ::Connection::DisconnectFailReason ,
::std::string const & ,
bool  )
virtualinherited

◆ onOutgoingConnectionFailed()

virtual void NetworkSystem::onOutgoingConnectionFailed ( ::Connection::DisconnectFailReason discoReason,
::std::string const & reasonMessage )
virtualinherited

◆ onWebsocketRequest()

virtual void NetworkSystem::onWebsocketRequest ( ::std::string const & serverAddress,
::std::string const & payload,
::std::function< void()> errorCallback )
virtualinherited

The documentation for this class was generated from the following file: