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> OnSessionRequested(
29 ::NetherNet::NetworkID networkID,
30 uint64 sessionId,
31 ::std::string_view assertion,
32 ::std::string_view fingerprintJson,
33 bool isLan
34 ) = 0;
35
36#ifdef LL_PLAT_S
37 virtual ::Bedrock::Threading::Async<bool>
38 OnSessionResponse(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool);
39#else // LL_PLAT_C
40 virtual ::Bedrock::Threading::Async<bool> OnSessionResponse(
41 ::NetherNet::NetworkID networkID,
42 uint64 sessionId,
43 ::std::string_view assertion,
44 ::std::string_view fingerprintJson,
45 bool isLan
46 );
47#endif
48
49 virtual void OnSessionOpen(::NetherNet::NetworkID networkID, uint64 sessionId, bool isLan) = 0;
50
51 virtual void OnSessionClose(
52 ::NetherNet::NetworkID networkID,
53 uint64 sessionId,
54 ::NetherNet::ESessionError sessionError,
55 ::Json::Value summary
56 ) = 0;
57
58 virtual void OnSpopViolation() = 0;
59
60 virtual void OnDiscoveryResponse(::NetherNet::NetworkID networkID, void const* pApplicationData, int size) = 0;
61
62 virtual ::brstd::move_only_function<bool(::cereal::SchemaWriter&, ::cereal::ContextArea)> OnDiscoveryRequest() = 0;
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68#ifdef LL_PLAT_S
69 MCNAPI ::Bedrock::Threading::Async<bool>
70 $OnSessionResponse(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool);
71#else // LL_PLAT_C
72 MCNAPI ::Bedrock::Threading::Async<bool> $OnSessionResponse(
73 ::NetherNet::NetworkID networkID,
74 uint64 sessionId,
75 ::std::string_view assertion,
76 ::std::string_view fingerprintJson,
77 bool isLan
78 );
79#endif
80
81
82 // NOLINTEND
83};
84
85} // 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