LeviLamina
Loading...
Searching...
No Matches
NetherNetTransportStub.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/ESendType.h"
7#include "mc/deps/nether_net/INetherNetTransportInterface.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock::PubSub { class Subscription; }
12namespace NetherNet { class ISignalingInterface; }
13namespace NetherNet { struct ILanEventHandler; }
14namespace NetherNet { struct ISignalingEventHandler; }
15namespace NetherNet { struct NetworkID; }
16namespace NetherNet { struct SessionState; }
17namespace NetherNet { struct StunRelayServer; }
18// clang-format on
19
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 // vIndex: 0
25 virtual ~NetherNetTransportStub() /*override*/ = default;
26
27 // vIndex: 1
28 virtual bool SendPacket(::NetherNet::NetworkID, uint64, ::std::string const&, ::NetherNet::ESendType) /*override*/;
29
30 // vIndex: 2
31 virtual bool IsPacketAvailable(::NetherNet::NetworkID, uint64, uint*) /*override*/;
32
33 // vIndex: 3
34 virtual bool ReadPacket(
36 uint64 connectionId,
37 void* pubDest,
38 uint cbDest,
39 uint* pcbMessageSize
40 ) /*override*/;
41
42 // vIndex: 4
43 virtual bool OpenSessionWithUser(::NetherNet::NetworkID) /*override*/;
44
45 // vIndex: 5
46 virtual bool CloseSessionWithUser(::NetherNet::NetworkID, uint64) /*override*/;
47
48 // vIndex: 6
49 virtual bool GetSessionState(
51 uint64 connectionId,
52 ::NetherNet::SessionState* pConnectionState
53 ) /*override*/;
54
55 // vIndex: 7
56 virtual void SetSignalingInterface(::std::shared_ptr<::NetherNet::ISignalingInterface> const&) /*override*/;
57
58 // vIndex: 8
59 virtual void SetRelayConfig(::std::vector<::NetherNet::StunRelayServer> const&) /*override*/;
60
61 // vIndex: 9
62 virtual bool IsBroadcastDiscoveryEnabled() /*override*/;
63
64 // vIndex: 10
65 virtual void EnableBroadcastDiscovery() /*override*/;
66
67 // vIndex: 11
68 virtual void DisableBroadcastDiscovery() /*override*/;
69
70 // vIndex: 12
71 virtual void EnableLANSignaling() /*override*/;
72
73 // vIndex: 13
74 virtual void DisableLANSignaling() /*override*/;
75
76 // vIndex: 15
77 virtual ::Bedrock::PubSub::Subscription RegisterEventHandler(::NetherNet::ISignalingEventHandler*) /*override*/;
78
79 // vIndex: 14
80 virtual ::Bedrock::PubSub::Subscription RegisterEventHandler(::NetherNet::ILanEventHandler*) /*override*/;
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86
87 // NOLINTEND
88};
Definition INetherNetTransportInterface.h:21
Definition NetherNetTransportStub.h:20
Definition ILanEventHandler.h:15
Definition ISignalingEventHandler.h:12
Definition NetworkID.h:17
Definition SessionState.h:7