Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
INetherNetTransportInterfaceCallbacks.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/ContextArea.h"
7#include "mc/deps/core/threading/Async.h"
8#include "mc/deps/nether_net/ESessionError.h"
9#include "mc/platform/brstd/move_only_function.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Json { class Value; }
14namespace NetherNet { struct NetworkID; }
15namespace cereal { struct SchemaWriter; }
16// clang-format on
17
18namespace NetherNet {
19
21public:
22 // virtual functions
23 // NOLINTBEGIN
25
26 virtual void OnSessionGetConnectionFlags(::NetherNet::NetworkID, uint*) = 0;
27
28 virtual ::Bedrock::Threading::Async<bool>
29 OnSessionRequested(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool) = 0;
30
31#ifdef LL_PLAT_S
32 virtual ::Bedrock::Threading::Async<bool>
33 OnSessionResponse(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool);
34#else // LL_PLAT_C
35 virtual ::Bedrock::Threading::Async<bool> OnSessionResponse(
36 ::NetherNet::NetworkID networkID,
37 uint64 sessionId,
38 ::std::string_view assertion,
39 ::std::string_view fingerprintJson,
40 bool isLan
41 );
42#endif
43
44 virtual void
45 OnSessionOpen(::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view assertion, bool isLan) = 0;
46
47 virtual void OnSessionClose(
48 ::NetherNet::NetworkID networkID,
49 uint64 sessionId,
50 ::NetherNet::ESessionError sessionError,
51 ::Json::Value summary
52 ) = 0;
53
54 virtual void OnSpopViolation() = 0;
55
56 virtual void OnDiscoveryResponse(::NetherNet::NetworkID networkID, void const* pApplicationData, int size) = 0;
57
58 virtual ::brstd::move_only_function<bool(::cereal::SchemaWriter&, ::cereal::ContextArea)> OnDiscoveryRequest() = 0;
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64#ifdef LL_PLAT_S
65 MCNAPI ::Bedrock::Threading::Async<bool>
66 $OnSessionResponse(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool);
67#else // LL_PLAT_C
68 MCNAPI ::Bedrock::Threading::Async<bool> $OnSessionResponse(
69 ::NetherNet::NetworkID networkID,
70 uint64 sessionId,
71 ::std::string_view assertion,
72 ::std::string_view fingerprintJson,
73 bool isLan
74 );
75#endif
76
77
78 // NOLINTEND
79};
80
81} // namespace NetherNet
Definition Value.h:16
Definition INetherNetTransportInterfaceCallbacks.h:20
MCAPI ::Bedrock::Threading::Async< bool > $OnSessionResponse(::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view assertion, ::std::string_view fingerprintJson, bool isLan)
Definition NetworkID.h:17
Definition SchemaWriter.h:16