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

Classes

struct  DisconnectEvent
 
struct  NewIncomingConnectionEvent
 
struct  NewOutgoingConnectionEvent
 

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 void setDisableLanSignaling (bool disableLanSignaling)
 
virtual void setInactivityTimeout (::NetworkIdentifier const &id, ::std::optional<::std::chrono::seconds > inactivityTimeout)
 
virtual bool host (::ConnectionDefinition const &definition)
 
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 NetherNetConnector (::NetherNetTransportFactory const &factory, ::Connector::ConnectionCallbacks &callbacks, ::std::optional<::NetherNet::NetworkID > networkId)
 
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)
 
MCAPI void $dtor ()
 
MCAPI void $setDisableLanSignaling (bool disableLanSignaling)
 
MCAPI void $setInactivityTimeout (::NetworkIdentifier const &id, ::std::optional<::std::chrono::seconds > inactivityTimeout)
 
MCFOLD bool $host (::ConnectionDefinition const &definition)
 
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 void disconnect ()=0
 
virtual bool isServer () const =0
 
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
 
MCFOLD void * $ctor ()
 
MCFOLD void * $ctor (::Bedrock::EnableNonOwnerReferences const &)
 
virtual bool OnSessionRequested (::NetherNet::NetworkID, uint64)=0
 
virtual void OnSessionOpen (::NetherNet::NetworkID, uint64)=0
 

Static Public Member Functions

static MCAPI void ** $vftableForNetworkEnableDisableListener ()
 
static MCAPI void ** $vftableForEnableNonOwnerReferences ()
 
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

Member Function Documentation

◆ setDisableLanSignaling()

virtual void NetherNetConnector::setDisableLanSignaling ( bool disableLanSignaling)
virtual

Implements RemoteConnector.

◆ setInactivityTimeout()

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

Reimplemented from RemoteConnector.

◆ host()

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

Implements RemoteConnector.

◆ connect()

virtual bool NetherNetConnector::connect ( ::Social::GameConnectionInfo const & ,
::Social::GameConnectionInfo const &  )
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 )
virtual

◆ OnBroadcastResponseReceived()

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

◆ OnBroadcastDiscoveryRequestReceivedGetResponse()

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

◆ OnSessionGetConnectionFlags()

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

◆ $vftableForNetworkEnableDisableListener()

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

◆ $vftableForEnableNonOwnerReferences()

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

◆ $vftable()

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

◆ $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: