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"
15namespace Bedrock::PubSub {
class Subscription; }
16namespace NetherNet {
struct DiscoveryResponsePacket; }
17namespace NetherNet {
struct ILanEventHandler; }
18namespace NetherNet {
struct NetworkID; }
19namespace NetherNet {
struct ThreadInit; }
20namespace rtc {
class AsyncPacketSocket; }
21namespace rtc {
class ReceivedPacket; }
22namespace rtc {
class SocketAddress; }
74 virtual void SendLanBroadcastResponse(
80 virtual void SendSignalingMessageTo(
83 ::std::string
const& message
90 virtual void Suspend() ;
93 virtual void Resume() ;
108 char const* threadName,
110 uint64 applicationId,
112 ::std::chrono::milliseconds interval
124 ::std::unique_ptr<::rtc::AsyncPacketSocket>& socket,
127 ::std::string
const& message
131 ::std::unique_ptr<::rtc::AsyncPacketSocket>& socket,
171 ::std::string
const& message
Definition ContextProxy.h:18
Definition ILanDiscovery.h:16
Definition LanThreadManager.h:31
MCAPI void $SendLanBroadcastResponse(::rtc::SocketAddress const &destination, ::NetherNet::DiscoveryResponsePacket const &packet)
MCAPI void * $ctor(::NetherNet::ContextProxy const &ctx)
MCAPI void BeginNetworkDiscovery()
MCAPI void DestroyLanResources()
static MCAPI void ** $vftableForILanDiscovery()
MCAPI void BroadcastTask()
MCAPI void $SendSignalingMessageTo(::NetherNet::NetworkID networkIdFrom, ::NetherNet::NetworkID networkIdTo, ::std::string const &message)
MCAPI void OnNetworkDiscoveryComplete()
static MCAPI void ** $vftableForThread()
MCAPI bool $IsBroadcastDiscoveryEnabled(::NetherNet::NetworkID id)
MCAPI void $DisableBroadcastDiscovery(::NetherNet::NetworkID id)
static MCAPI void ** $vftableForContextProxy()
MCAPI void Initialize(char const *threadName, ::NetherNet::ThreadInit const &threadInit, uint64 applicationId, ushort port, ::std::chrono::milliseconds interval)
MCAPI void SendSignalingMessageTo(::std::unique_ptr<::rtc::AsyncPacketSocket > &socket, ::NetherNet::NetworkID networkIdFrom, ::NetherNet::NetworkID networkIdTo, ::std::string const &message)
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 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 DiscoveryResponsePacket.h:10
Definition ILanEventHandler.h:15
Definition NetworkID.h:21
Definition ThreadInit.h:7