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)
 
MCAPI void _createNetworkStatistics (::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > const &networkDebugManager)
 
MCAPI::NetworkIdentifier getLocalNetworkId () const
 
MCAPI bool host (::ConnectionDefinition const &definition)
 
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)
 
MCFOLD void $dtor ()
 
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)
 
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 bool _isUsingNetherNetTransportLayer () const
 
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 void disconnect ()
 
MCAPI void enableAsyncFlush (::NetworkIdentifier const &id)
 
MCAPI::NetworkPeer * getPeerForUser (::NetworkIdentifier const &id)
 
MCAPI ::Bedrock::NotNullNonOwnerPtr<::RemoteConnectorgetRemoteConnector ()
 
MCAPI bool isServer () const
 
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)
 
MCAPI void $dtor ()
 
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)
 
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)
 
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, 24, ::std::vector<::std::unique_ptr<::NetworkConnection > > > mConnections
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::LocalConnector > > mLocalConnector
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::RemoteConnector > > mRemoteConnector
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::ServerLocator > > mServerLocator
 
::ll::TypedStorage< 8, 80, ::std::recursive_mutex > mConnectionsMutex
 
::ll::TypedStorage< 8, 8, uint64 > mCurrentConnection
 
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::Bedrock::Threading::IAsyncResult< 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 > mEnablePacketRateLimiting
 
::ll::TypedStorage< 1, 1, bool > mWebsocketsEnabled
 
::ll::TypedStorage< 4, 24, ::NetworkSettingOptionsmNetworkSettingOptions
 
::ll::TypedStorage< 1, 1, bool > mRawRecordingEnabled
 
::ll::UntypedStorage< 4, 4 > mUnkaf3b65
 
::ll::UntypedStorage< 8, 24 > mUnk1d223d
 

Constructor & Destructor Documentation

◆ ServerNetworkSystem()

MCAPI ServerNetworkSystem::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 )
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.

Member Function Documentation

◆ _createNetworkStatistics()

MCAPI void ServerNetworkSystem::_createNetworkStatistics ( ::NetworkSystemToggles const & networkToggles,
::Bedrock::NonOwnerPointer<::NetworkDebugManager > const & networkDebugManager )
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.

◆ getLocalNetworkId()

MCAPI::NetworkIdentifier ServerNetworkSystem::getLocalNetworkId ( ) const
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.

◆ host()

MCAPI bool ServerNetworkSystem::host ( ::ConnectionDefinition const & definition)
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.

◆ _createConstructionDependencies()

static MCAPI ::NetworkSystem::Dependencies ServerNetworkSystem::_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 )
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.

◆ $ctor()

MCAPI void * ServerNetworkSystem::$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 )
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.

◆ $vftableForNetworkEnableDisableListener()

static 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()

static 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()

static 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()

static 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 )
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: