LeviLamina
Loading...
Searching...
No Matches
NetherNetConnector Struct Referenceabstract
Inheritance diagram for NetherNetConnector:

Classes

struct  DisconnectEvent
struct  NewIncomingConnectionEvent
struct  NewOutgoingConnectionEvent

Public Types

using BroadcastRequestCallback
using BroadcastResponseCallback = ::std::function<void(::NetherNet::NetworkID const&, void const*, int)>
using Event
using UniqueLock = ::Bedrock::Threading::UniqueLock<::std::recursive_mutex>
enum class  State : int { Enabled = 0 , Disabled = 1 , Uninitialized = 2 }

Public Member Functions

virtual bool closeSessionWithUser (::NetherNet::NetworkID remoteId, uint64 sessionId)
virtual void setDisableLanSignaling (bool disableLanSignaling)
virtual bool host (::ConnectionDefinition const &definition, ::PrivateKeyManager const &keys)
virtual bool connect (::Social::GameConnectionInfo const &primaryConnection, ::Social::GameConnectionInfo const &backupConnection, ::std::shared_ptr<::NetherNet::IIdentityAssertionGenerator > identityGenerator)
virtual void tick ()
virtual void runEvents ()
virtual::NetworkIdentifier getNetworkIdentifier () const
virtual void closeNetworkConnection (::NetworkIdentifier const &)
virtual bool setApplicationHandshakeCompleted (::NetworkIdentifier const &)
virtual::TransportLayer getNetworkType () const
virtual void _onDisable ()
virtual void _onEnable ()
virtual void OnSpopViolation ()
virtual void OnSessionClose (::NetherNet::NetworkID networkID, uint64 sessionId, ::NetherNet::ESessionError sessionError, ::Json::Value summary)
virtual void OnDiscoveryResponse (::NetherNet::NetworkID networkID, void const *pApplicationData, int size)
virtual ::brstd::move_only_function< bool(::cereal::SchemaWriter &, ::cereal::ContextArea)> OnDiscoveryRequest ()
virtual void OnSessionGetConnectionFlags (::NetherNet::NetworkID, uint *flags)
MCAPI NetherNetConnector (::NetherNetTransportFactory const &factory, ::Connector::ConnectionCallbacks &callbacks, ::std::optional<::NetherNet::NetworkID > networkId)
MCAPI void setBroadcastResponseCallback (::std::function< void(::NetherNet::NetworkID const &, void const *, int)> &&broadcastResponseCallback)
MCAPI void * $ctor (::NetherNetTransportFactory const &factory, ::Connector::ConnectionCallbacks &callbacks, ::std::optional<::NetherNet::NetworkID > networkId)
MCAPI void $dtor ()
MCAPI bool $closeSessionWithUser (::NetherNet::NetworkID remoteId, uint64 sessionId)
MCAPI void $setDisableLanSignaling (bool disableLanSignaling)
MCFOLD bool $host (::ConnectionDefinition const &definition, ::PrivateKeyManager const &keys)
MCAPI bool $connect (::Social::GameConnectionInfo const &primaryConnection, ::Social::GameConnectionInfo const &backupConnection, ::std::shared_ptr<::NetherNet::IIdentityAssertionGenerator > identityGenerator)
MCFOLD void $tick ()
MCAPI void $runEvents ()
MCAPI::NetworkIdentifier $getNetworkIdentifier () const
MCFOLD void $closeNetworkConnection (::NetworkIdentifier const &)
MCFOLD bool $setApplicationHandshakeCompleted (::NetworkIdentifier const &)
MCFOLD::TransportLayer $getNetworkType () const
MCFOLD void $_onDisable ()
MCFOLD void $_onEnable ()
MCFOLD void $OnSpopViolation ()
MCAPI void $OnSessionClose (::NetherNet::NetworkID networkID, uint64 sessionId, ::NetherNet::ESessionError sessionError, ::Json::Value summary)
MCAPI void $OnDiscoveryResponse (::NetherNet::NetworkID networkID, void const *pApplicationData, int size)
MCAPI ::brstd::move_only_function< bool(::cereal::SchemaWriter &, ::cereal::ContextArea)> $OnDiscoveryRequest ()
MCAPI void $OnSessionGetConnectionFlags (::NetherNet::NetworkID, uint *flags)
virtual void disconnect ()=0
virtual bool isServer () const =0
virtual::std::string getLocalIp ()
virtual ushort getPort () const
virtual::Social::GameConnectionInfo const & getConnectedGameInfo () const
virtual void setConnectedResolvedExperienceInfo (::std::optional<::Social::ResolvedExperienceInfo > const &resolvedExperienceInfo)
virtual bool isIPv4Supported () const
virtual bool isIPv6Supported () const
virtual ushort getIPv4Port () const
virtual ushort getIPv6Port () const
MCFOLD::std::string $getLocalIp ()
MCFOLD ushort $getPort () const
MCFOLD::Social::GameConnectionInfo const & $getConnectedGameInfo () const
MCFOLD void $setConnectedResolvedExperienceInfo (::std::optional<::Social::ResolvedExperienceInfo > const &resolvedExperienceInfo)
MCFOLD bool $isIPv4Supported () const
MCFOLD bool $isIPv6Supported () const
MCFOLD ushort $getIPv4Port () const
MCFOLD ushort $getIPv6Port () const
virtual ::Bedrock::Threading::Async< bool > OnSessionRequested (::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view assertion, ::std::string_view fingerprintJson, bool isLan)=0
virtual ::Bedrock::Threading::Async< bool > OnSessionResponse (::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view assertion, ::std::string_view fingerprintJson, bool isLan)
virtual void OnSessionOpen (::NetherNet::NetworkID networkID, uint64 sessionId, bool isLan)=0
MCAPI ::Bedrock::Threading::Async< bool > $OnSessionResponse (::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view assertion, ::std::string_view fingerprintJson, bool isLan)

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI void ** $vftable ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 16, ::std::shared_ptr<::Bedrock::Http::LibHttpClientInstance > const > mHttpLibrary
::ll::TypedStorage< 8, 24, ::NetherNet::NetworkID const > mNetworkID
::ll::TypedStorage< 8, 72, ::std::unique_ptr< ::NetherNet::INetherNetTransportInterface, ::std::function< void(::NetherNet::INetherNetTransportInterface *)> > > mTransport
::ll::TypedStorage< 8, 80, ::std::mutex > mBroadcastCallbackMutex
::ll::TypedStorage< 8, 64, ::brstd::move_only_function< ::brstd::move_only_function< bool(::cereal::SchemaWriter &, ::cereal::ContextArea)>()> > mBroadcastRequestCallback
::ll::TypedStorage< 8, 64, ::std::function< void(::NetherNet::NetworkID const &, void const *, int)> > mBroadcastResponseCallback
::ll::TypedStorage< 8, 80, ::std::recursive_mutex > mEventsMutex
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::std::vector<::std::variant< ::NetherNetConnector::NewIncomingConnectionEvent, ::NetherNetConnector::NewOutgoingConnectionEvent, ::NetherNetConnector::DisconnectEvent > > > > mEvents
::ll::TypedStorage< 8, 24, ::std::vector<::std::weak_ptr<::WebRTCNetworkPeer > > > mPeers
::ll::TypedStorage< 8, 8, ::Connector::ConnectionCallbacks & > mCallbacks
::ll::UntypedStorage< 4, 4 > mUnkaf3b65
::ll::UntypedStorage< 8, 24 > mUnk1d223d
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Member Typedef Documentation

◆ BroadcastRequestCallback

using NetherNetConnector::BroadcastRequestCallback

◆ Event

using NetherNetConnector::Event

Member Function Documentation

◆ setDisableLanSignaling()

virtual void NetherNetConnector::setDisableLanSignaling ( bool disableLanSignaling)
virtual

Implements RemoteConnector.

◆ host()

virtual bool NetherNetConnector::host ( ::ConnectionDefinition const & definition,
::PrivateKeyManager const & keys )
virtual

Implements RemoteConnector.

◆ connect()

virtual bool NetherNetConnector::connect ( ::Social::GameConnectionInfo const & primaryConnection,
::Social::GameConnectionInfo const & backupConnection,
::std::shared_ptr<::NetherNet::IIdentityAssertionGenerator > identityGenerator )
virtual

Implements RemoteConnector.

◆ tick()

virtual void NetherNetConnector::tick ( )
virtual

Implements RemoteConnector.

◆ runEvents()

virtual void NetherNetConnector::runEvents ( )
virtual

Implements RemoteConnector.

◆ getNetworkIdentifier()

virtual::NetworkIdentifier NetherNetConnector::getNetworkIdentifier ( ) const
virtual

Implements RemoteConnector.

◆ closeNetworkConnection()

virtual void NetherNetConnector::closeNetworkConnection ( ::NetworkIdentifier const & )
virtual

Implements RemoteConnector.

◆ setApplicationHandshakeCompleted()

virtual bool NetherNetConnector::setApplicationHandshakeCompleted ( ::NetworkIdentifier const & )
virtual

Implements RemoteConnector.

◆ _onDisable()

virtual void NetherNetConnector::_onDisable ( )
virtual

◆ _onEnable()

virtual void NetherNetConnector::_onEnable ( )
virtual

◆ OnSpopViolation()

virtual void NetherNetConnector::OnSpopViolation ( )
virtual

◆ OnSessionClose()

virtual void NetherNetConnector::OnSessionClose ( ::NetherNet::NetworkID networkID,
uint64 sessionId,
::NetherNet::ESessionError sessionError,
::Json::Value summary )
virtual

◆ OnDiscoveryResponse()

virtual void NetherNetConnector::OnDiscoveryResponse ( ::NetherNet::NetworkID networkID,
void const * pApplicationData,
int size )
virtual

◆ OnDiscoveryRequest()

virtual ::brstd::move_only_function< bool(::cereal::SchemaWriter &, ::cereal::ContextArea)> NetherNetConnector::OnDiscoveryRequest ( )
virtual

◆ OnSessionGetConnectionFlags()

virtual void NetherNetConnector::OnSessionGetConnectionFlags ( ::NetherNet::NetworkID ,
uint * flags )
virtual

◆ $vftable() [1/3]

MCAPI void ** Connector::$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/3]

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.

◆ $vftable() [3/3]

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.

◆ $OnSessionResponse()

MCAPI ::Bedrock::Threading::Async< bool > NetherNet::INetherNetTransportInterfaceCallbacks::$OnSessionResponse ( ::NetherNet::NetworkID networkID,
uint64 sessionId,
::std::string_view assertion,
::std::string_view fingerprintJson,
bool isLan )
inherited
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 struct was generated from the following file: