LeviLamina
Loading...
Searching...
No Matches
ILanDiscovery.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Bedrock::PubSub { class Subscription; }
8namespace NetherNet { struct ILanEventHandler; }
9namespace NetherNet { struct NetworkID; }
10namespace rtc { class SocketAddress; }
11// clang-format on
12
13namespace NetherNet {
14
16public:
17 // virtual functions
18 // NOLINTBEGIN
19 virtual bool IsBroadcastDiscoveryEnabled(::NetherNet::NetworkID id) = 0;
20
21 virtual void DisableBroadcastDiscovery(::NetherNet::NetworkID id) = 0;
22
23 virtual void EnableBroadcastDiscovery(::NetherNet::NetworkID id) = 0;
24
25 virtual void AddLanHost(::NetherNet::NetworkID remote, ::std::string const& ipStr, int port) = 0;
26
27 virtual void RemoveLanHost(::NetherNet::NetworkID remote) = 0;
28
29 virtual bool IsNetworkIdOnLan(::NetherNet::NetworkID networkId) = 0;
30
31 virtual void SendLanBroadcastResponse(
32 ::rtc::SocketAddress const& destination,
34 ::std::vector<::std::byte> data
35 ) = 0;
36
37 virtual void SendSignalingMessageTo(
38 ::NetherNet::NetworkID networkIdFrom,
39 ::NetherNet::NetworkID networkIdTo,
40 ::std::vector<::std::byte> data
41 ) = 0;
42
43 virtual ::Bedrock::PubSub::Subscription RegisterEventHandler(::NetherNet::ILanEventHandler* handler) = 0;
44
45 virtual void Suspend() = 0;
46
47 virtual void Resume() = 0;
48 // NOLINTEND
49
50public:
51 // virtual function thunks
52 // NOLINTBEGIN
53
54 // NOLINTEND
55};
56
57} // namespace NetherNet
Definition Subscription.h:10
Definition ILanDiscovery.h:15
Definition SocketAddress.h:12
Definition ILanEventHandler.h:15
Definition NetworkID.h:17