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