Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
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
7
namespace
Bedrock::PubSub {
class
Subscription
; }
8
namespace
NetherNet {
struct
ILanEventHandler
; }
9
namespace
NetherNet {
struct
NetworkID
; }
10
namespace
webrtc {
class
SocketAddress
; }
11
// clang-format on
12
13
namespace
NetherNet {
14
15
class
ILanDiscovery
{
16
public
:
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
::webrtc::SocketAddress
const
& destination,
33
::NetherNet::NetworkID
from,
34
::std::string data
35
) = 0;
36
37
virtual
void
SendSignalingMessageTo(
38
::NetherNet::NetworkID
networkIdFrom,
39
::NetherNet::NetworkID
networkIdTo,
40
::std::string 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
};
50
51
}
// namespace NetherNet
Bedrock::PubSub::Subscription
Definition
Subscription.h:10
NetherNet::ILanDiscovery
Definition
ILanDiscovery.h:15
webrtc::SocketAddress
Definition
SocketAddress.h:11
NetherNet::ILanEventHandler
Definition
ILanEventHandler.h:15
NetherNet::NetworkID
Definition
NetworkID.h:17
src
mc
deps
nether_net
ILanDiscovery.h
Generated on
for LeviLamina by
1.16.1