3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/nether_net/ContextProxy.h"
7#include "mc/deps/nether_net/ILanDiscovery.h"
8#include "mc/deps/nether_net/lan/Controller.h"
9#include "mc/external/rtc/Thread.h"
10#include "mc/external/sigslot/has_slots.h"
11#include "mc/external/sigslot/single_threaded.h"
50 LanThreadManager& operator=(LanThreadManager
const&);
51 LanThreadManager(LanThreadManager
const&);
57 virtual ~LanThreadManager() ;
71 virtual void SendLanBroadcastResponse(
74 ::std::vector<::std::byte> data
77 virtual void SendSignalingMessageTo(
80 ::std::vector<::std::byte> data
85 virtual void Suspend() ;
87 virtual void Resume() ;
102 char const* threadName,
104 uint64 applicationId,
106 ::std::chrono::milliseconds interval
118 ::std::unique_ptr<::rtc::AsyncPacketSocket>& socket,
121 ::std::vector<::std::byte> data
125 ::std::unique_ptr<::rtc::AsyncPacketSocket>& socket,
164 ::std::vector<::std::byte> data
170 ::std::vector<::std::byte> data
Definition Subscription.h:10
Definition ContextProxy.h:18
Definition ILanDiscovery.h:15
MCAPI void * $ctor(::NetherNet::ContextProxy const &ctx)
MCAPI void BeginNetworkDiscovery()
MCAPI void DestroyLanResources()
static MCAPI void ** $vftableForILanDiscovery()
MCAPI void BroadcastTask()
MCAPI void $SendLanBroadcastResponse(::rtc::SocketAddress const &destination, ::NetherNet::NetworkID from, ::std::vector<::std::byte > data)
MCAPI void OnNetworkDiscoveryComplete()
MCAPI void Initialize(char const *threadName, ::ThreadConfiguration const &threadConfiguration, uint64 applicationId, ushort port, ::std::chrono::milliseconds interval)
static MCAPI void ** $vftableForThread()
MCAPI bool $IsBroadcastDiscoveryEnabled(::NetherNet::NetworkID id)
MCAPI void $DisableBroadcastDiscovery(::NetherNet::NetworkID id)
static MCAPI void ** $vftableForContextProxy()
MCAPI void SendSignalingMessageTo(::std::unique_ptr<::rtc::AsyncPacketSocket > &socket, ::NetherNet::NetworkID networkIdFrom, ::NetherNet::NetworkID networkIdTo, ::std::vector<::std::byte > data)
MCAPI void $AddLanHost(::NetherNet::NetworkID remote, ::std::string const &ipStr, int port)
MCAPI void $SendSignalingMessageTo(::NetherNet::NetworkID networkIdFrom, ::NetherNet::NetworkID networkIdTo, ::std::vector<::std::byte > data)
MCAPI::std::error_code SendToHelper(::std::unique_ptr<::rtc::AsyncPacketSocket > &socket, void const *data, uint64 size, ::rtc::SocketAddress const &addr)
MCAPI::Bedrock::PubSub::Subscription $RegisterEventHandler(::NetherNet::ILanEventHandler *handler)
MCAPI void $EnableBroadcastDiscovery(::NetherNet::NetworkID id)
MCAPI LanThreadManager(::NetherNet::ContextProxy const &ctx)
MCAPI void OnPacket(::rtc::AsyncPacketSocket *, ::rtc::ReceivedPacket const &packet)
MCAPI void SendLanBroadcastRequest(::std::unique_ptr<::rtc::AsyncPacketSocket > &socket, ::NetherNet::NetworkID id)
static MCAPI void ** $vftableForHasSlots()
MCAPI void $RemoveLanHost(::NetherNet::NetworkID remote)
MCAPI bool $IsNetworkIdOnLan(::NetherNet::NetworkID networkId)
MCAPI void CreateEncryptedBroadcastSocket()
Definition Controller.h:7
Definition AsyncPacketSocket.h:20
Definition ReceivedPacket.h:16
Definition SocketAddress.h:12
Definition ILanEventHandler.h:15
Definition NetworkID.h:17
Definition ThreadConfiguration.h:5