LeviLamina
Loading...
Searching...
No Matches
ServerNetherNetConnector Struct Reference
+ Inheritance diagram for ServerNetherNetConnector:

Public Types

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

Public Member Functions

virtual bool host (::ConnectionDefinition const &definition)
 
virtual void disconnect ()
 
virtual bool isServer () const
 
virtual bool OnSessionRequested (::NetherNet::NetworkID, uint64)
 
virtual void OnSessionOpen (::NetherNet::NetworkID networkID, uint64 sessionId)
 
MCAPI bool $host (::ConnectionDefinition const &definition)
 
MCAPI void $disconnect ()
 
MCAPI bool $isServer () const
 
MCAPI bool $OnSessionRequested (::NetherNet::NetworkID, uint64)
 
MCAPI void $OnSessionOpen (::NetherNet::NetworkID networkID, uint64 sessionId)
 
virtual void setDisableLanSignaling (bool disableLanSignaling)
 
virtual void setInactivityTimeout (::NetworkIdentifier const &id, ::std::optional<::std::chrono::seconds > inactivityTimeout)
 
virtual bool connect (::Social::GameConnectionInfo const &, ::Social::GameConnectionInfo const &)
 
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)
 
virtual void OnBroadcastResponseReceived (::NetherNet::NetworkID networkID, void const *pApplicationData, int size)
 
virtual bool OnBroadcastDiscoveryRequestReceivedGetResponse (void *pApplicationData, int *pSize)
 
virtual void OnSessionGetConnectionFlags (::NetherNet::NetworkID, uint *flags)
 
MCAPI ::gsl::not_null<::std::shared_ptr<::WebRTCNetworkPeer > > _getOrCreatePeer (::NetherNet::NetworkID const &remoteId, uint64 sessionId, ::Bedrock::Threading::UniqueLock<::std::recursive_mutex > const &)
 
MCAPI void _prepareForNewSession ()
 
MCAPI void _queueIncomingConnectionEvent (::NetherNet::NetworkID peerId, uint64 sessionId)
 
MCAPI void * $ctor (::NetherNetTransportFactory const &factory, ::Connector::ConnectionCallbacks &callbacks, ::std::optional<::NetherNet::NetworkID > networkId)
 
MCFOLD void * $ctor ()
 
MCFOLD void * $ctor (::Bedrock::EnableNonOwnerReferences const &)
 
MCAPI void $dtor ()
 
MCAPI void $setDisableLanSignaling (bool disableLanSignaling)
 
MCAPI void $setInactivityTimeout (::NetworkIdentifier const &id, ::std::optional<::std::chrono::seconds > inactivityTimeout)
 
MCFOLD bool $connect (::Social::GameConnectionInfo const &, ::Social::GameConnectionInfo const &)
 
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)
 
MCAPI void $OnBroadcastResponseReceived (::NetherNet::NetworkID networkID, void const *pApplicationData, int size)
 
MCAPI bool $OnBroadcastDiscoveryRequestReceivedGetResponse (void *pApplicationData, int *pSize)
 
MCAPI void $OnSessionGetConnectionFlags (::NetherNet::NetworkID, uint *flags)
 
virtual::std::string getLocalIp ()
 
virtual ushort getPort () const
 
virtual::Social::GameConnectionInfo const & getConnectedGameInfo () const
 
virtual bool isIPv4Supported () const
 
virtual bool isIPv6Supported () const
 
virtual ushort getIPv4Port () const
 
virtual ushort getIPv6Port () const
 
MCAPI::std::string $getLocalIp ()
 
MCAPI ushort $getPort () const
 
MCAPI::Social::GameConnectionInfo const & $getConnectedGameInfo () const
 
MCAPI bool $isIPv4Supported () const
 
MCAPI bool $isIPv6Supported () const
 
MCAPI ushort $getIPv4Port () const
 
MCAPI ushort $getIPv6Port () const
 

Static Public Member Functions

static MCAPI void ** $vftableForEnableNonOwnerReferences ()
 
static MCAPI void ** $vftableForNetworkEnableDisableListener ()
 
static MCAPI void ** $vftable ()
 
static MCAPI void ** $vftableForConnector ()
 

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, ::Bedrock::Threading::MutexmBroadcastCallbackMutex
 
::ll::TypedStorage< 8, 64, ::std::function< bool(void *, int *)> > 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::UntypedStorage< 8, 8 > mUnkf38309
 
::ll::UntypedStorage< 4, 4 > mUnkaf3b65
 
::ll::UntypedStorage< 8, 24 > mUnk1d223d
 
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlockmControlBlock
 

Member Typedef Documentation

◆ Event

using NetherNetConnector::Event
inherited

Member Function Documentation

◆ host()

virtual bool ServerNetherNetConnector::host ( ::ConnectionDefinition const & definition)
virtual

Reimplemented from NetherNetConnector.

◆ disconnect()

virtual void ServerNetherNetConnector::disconnect ( )
virtual

Implements RemoteConnector.

◆ isServer()

virtual bool ServerNetherNetConnector::isServer ( ) const
virtual

Implements RemoteConnector.

◆ OnSessionRequested()

virtual bool ServerNetherNetConnector::OnSessionRequested ( ::NetherNet::NetworkID ,
uint64  )
virtual

◆ OnSessionOpen()

virtual void ServerNetherNetConnector::OnSessionOpen ( ::NetherNet::NetworkID networkID,
uint64 sessionId )
virtual

◆ $host()

MCAPI bool ServerNetherNetConnector::$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.

◆ $disconnect()

MCAPI void ServerNetherNetConnector::$disconnect ( )
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.

◆ $isServer()

MCAPI bool ServerNetherNetConnector::$isServer ( ) 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.

◆ $OnSessionRequested()

MCAPI bool ServerNetherNetConnector::$OnSessionRequested ( ::NetherNet::NetworkID ,
uint64  )
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.

◆ $OnSessionOpen()

MCAPI void ServerNetherNetConnector::$OnSessionOpen ( ::NetherNet::NetworkID networkID,
uint64 sessionId )
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()

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

◆ $vftableForNetworkEnableDisableListener()

static MCAPI void ** ServerNetherNetConnector::$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()

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

◆ $vftableForConnector()

static MCAPI void ** ServerNetherNetConnector::$vftableForConnector ( )
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.

◆ setDisableLanSignaling()

virtual void NetherNetConnector::setDisableLanSignaling ( bool disableLanSignaling)
virtualinherited

Implements RemoteConnector.

◆ setInactivityTimeout()

virtual void NetherNetConnector::setInactivityTimeout ( ::NetworkIdentifier const & id,
::std::optional<::std::chrono::seconds > inactivityTimeout )
virtualinherited

Reimplemented from RemoteConnector.

◆ connect()

virtual bool NetherNetConnector::connect ( ::Social::GameConnectionInfo const & ,
::Social::GameConnectionInfo const &  )
virtualinherited

Implements RemoteConnector.

◆ tick()

virtual void NetherNetConnector::tick ( )
virtualinherited

Implements RemoteConnector.

◆ runEvents()

virtual void NetherNetConnector::runEvents ( )
virtualinherited

Implements RemoteConnector.

◆ getNetworkIdentifier()

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

Implements RemoteConnector.

◆ closeNetworkConnection()

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

Implements RemoteConnector.

◆ setApplicationHandshakeCompleted()

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

Implements RemoteConnector.

◆ _onDisable()

virtual void NetherNetConnector::_onDisable ( )
virtualinherited

◆ _onEnable()

virtual void NetherNetConnector::_onEnable ( )
virtualinherited

◆ OnSpopViolation()

virtual void NetherNetConnector::OnSpopViolation ( )
virtualinherited

◆ OnSessionClose()

virtual void NetherNetConnector::OnSessionClose ( ::NetherNet::NetworkID networkID,
uint64 sessionId,
::NetherNet::ESessionError sessionError )
virtualinherited

◆ OnBroadcastResponseReceived()

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

◆ OnBroadcastDiscoveryRequestReceivedGetResponse()

virtual bool NetherNetConnector::OnBroadcastDiscoveryRequestReceivedGetResponse ( void * pApplicationData,
int * pSize )
virtualinherited

◆ OnSessionGetConnectionFlags()

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

◆ $getLocalIp()

MCAPI::std::string Connector::$getLocalIp ( )
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.

◆ $getPort()

MCAPI ushort Connector::$getPort ( ) const
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.

◆ $getConnectedGameInfo()

MCAPI::Social::GameConnectionInfo const & Connector::$getConnectedGameInfo ( ) const
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.

◆ $isIPv4Supported()

MCAPI bool Connector::$isIPv4Supported ( ) const
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.

◆ $isIPv6Supported()

MCAPI bool Connector::$isIPv6Supported ( ) const
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.

◆ $getIPv4Port()

MCAPI ushort Connector::$getIPv4Port ( ) const
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.

◆ $getIPv6Port()

MCAPI ushort Connector::$getIPv6Port ( ) const
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: