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
7
namespace
Bedrock::PubSub {
class
Subscription
; }
8
namespace
NetherNet {
struct
ILanEventHandler
; }
9
namespace
NetherNet {
struct
NetworkID
; }
10
namespace
rtc {
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
::rtc::SocketAddress
const
& destination,
33
::NetherNet::NetworkID
from,
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
50
public
:
51
// virtual function thunks
52
// NOLINTBEGIN
53
54
// NOLINTEND
55
};
56
57
}
// namespace NetherNet
Bedrock::PubSub::Subscription
Definition
Subscription.h:10
NetherNet::ILanDiscovery
Definition
ILanDiscovery.h:15
rtc::SocketAddress
Definition
SocketAddress.h:12
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