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

Public Types

using DependencyFactory = ::brstd::function_ref<::NetworkSystem::Dependencies()>
using StatisticsFactory
enum class  State : int { Enabled = 0 , Disabled = 1 , Uninitialized = 2 }

Public Member Functions

virtual::Social::GameConnectionInfo const & getConnectionInfo () const
virtual ::std::optional<::std::string > getNetworkInfoString () const
MCNAPI_C ClientNetworkSystem (::Scheduler &receiveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > networkDebugManager, ::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::std::unique_ptr<::IPacketSerializationController > packetController)
MCNAPI_C bool connect (::Social::GameConnectionInfo const &gameConnection, ::Social::GameConnectionInfo const &backupConnection)
MCNAPI_C ::std::shared_ptr<::SignalingServiceSignInJobcreateSignalingServiceSigninJobIfNeeded (::std::shared_ptr<::SignalingService > signalingService, bool useJsonRpc, ::Bedrock::Threading::Async<::std::optional<::PlayerMessaging::NetworkID > > &&playerMessagingId)
MCNAPI_C ::std::pair<::Json::Value, ::Json::ValuegetPacketTraces () const
MCNAPI_C void getPingTimeForConnection (::Social::GameConnectionInfo const &connection, ::std::function< void(uint)> pingTimeCallback)
MCNAPI_C void registerForPrimaryUserOptionChanges (::ClientNetworkSystemOptions const &primaryUserOptions)
MCNAPI_C void setupNetworkSummary (::std::function< bool()> isInGame, ::std::function< bool()> isSignedIntoSignalingService, ::std::function< bool()> isHostingLocalDedicatedServer)
MCAPI ::std::optional<::NetworkIdentifiertryGetLocalNetworkId () const
MCAPI ::std::optional<::NetworkIdentifiertryGetServerId () const
MCNAPI_C void * $ctor (::Scheduler &receiveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > networkDebugManager, ::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::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 MCNAPI_C ::NetworkSystem::Dependencies _createConstructionDependencies (::ClientNetworkSystem *pThis, ::Scheduler &recieveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::NetherNetTransportFactory const &transportFactory, ::Bedrock::NonOwnerPointer<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::std::unique_ptr<::IPacketSerializationController > packetController)
static MCAPI void ** $vftableForIPSupportInterface ()
static MCAPI void ** $vftableForIGameConnectionInfoProvider ()
static MCAPI void ** $vftableForEnableNonOwnerReferences ()
static MCAPI void ** $vftableForConnectionCallbacks ()
static MCAPI void ** $vftableForNetworkEnableDisableListener ()
static MCAPI void ** $vftable ()
static MCAPI void ** $vftable ()
static MCAPI void ** $vftable ()
static MCAPI void ** $vftable ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 336, ::TaskGroupmTaskGroup
::ll::TypedStorage< 8, 16, ::std::weak_ptr<::SignalingService > > mSignalingService
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::SubscriptionmUserLoggingSub
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::SubscriptionmUserConnectionQualitySub
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::SubscriptionmDisableLanSignalingSub
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::SubscriptionmDisableTrickleIceSub
::ll::TypedStorage< 8, 16, ::Bedrock::UniqueOwnerPointer<::NetworkSummary > > mNetworkSummary
::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 Typedef Documentation

◆ StatisticsFactory

using ClientNetworkSystem::StatisticsFactory
Initial value:
::brstd::function_ref<::std::unique_ptr<::NetworkStatistics>(), ::std::unique_ptr<::NetworkStatistics>()>
Definition function_ref.h:60

Member Function Documentation

◆ getConnectionInfo()

virtual::Social::GameConnectionInfo const & ClientNetworkSystem::getConnectionInfo ( ) const
virtual

◆ getNetworkInfoString()

virtual ::std::optional<::std::string > ClientNetworkSystem::getNetworkInfoString ( ) const
virtual

◆ tryGetLocalNetworkId()

MCAPI ::std::optional<::NetworkIdentifier > ClientNetworkSystem::tryGetLocalNetworkId ( ) 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.

◆ tryGetServerId()

MCAPI ::std::optional<::NetworkIdentifier > ClientNetworkSystem::tryGetServerId ( ) 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.

◆ $dtor()

MCAPI void ClientNetworkSystem::$dtor ( )
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 ** ClientNetworkSystem::$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.

◆ $vftableForIGameConnectionInfoProvider()

MCAPI void ** ClientNetworkSystem::$vftableForIGameConnectionInfoProvider ( )
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.

◆ $vftableForEnableNonOwnerReferences()

MCAPI void ** ClientNetworkSystem::$vftableForEnableNonOwnerReferences ( )
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 ** ClientNetworkSystem::$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.

◆ $vftableForNetworkEnableDisableListener()

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

◆ $vftable() [1/5]

MCAPI void ** Social::IGameConnectionInfoProvider::$vftable ( )
staticinherited
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() [2/5]

MCAPI void ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
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

◆ $vftable() [3/5]

MCAPI void ** RakNetConnector::ConnectionCallbacks::$vftable ( )
staticinherited
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() [4/5]

MCAPI void ** RakPeerHelper::IPSupportInterface::$vftable ( )
staticinherited
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() [5/5]

MCAPI void ** NetworkEnableDisableListener::$vftable ( )
staticinherited
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.

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