Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerNetherNetConnector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7#include "mc/network/Connector.h"
8#include "mc/network/NetherNetConnector.h"
9#include "mc/platform/brstd/copyable_function.h"
10
11// auto generated forward declare list
12// clang-format off
17namespace NetherNet { struct NetworkID; }
18// clang-format on
19
20struct ServerNetherNetConnector : public ::NetherNetConnector {
21public:
22 // member variables
23 // NOLINTBEGIN
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 ServerNetherNetConnector& operator=(ServerNetherNetConnector const&);
30 ServerNetherNetConnector(ServerNetherNetConnector const&);
31 ServerNetherNetConnector();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ~ServerNetherNetConnector() /*override*/ = default;
37
38 virtual bool host(::ConnectionDefinition const& definition, ::PrivateKeyManager const& keys) /*override*/;
39
40 virtual void disconnect() /*override*/;
41
42 virtual bool isServer() const /*override*/;
43
44 virtual ::Bedrock::Threading::Async<bool> OnSessionRequested(
46 uint64,
47 ::std::string_view assertion,
48 ::std::string_view fingerprintJson,
49 bool isLan
50 ) /*override*/;
51
52 virtual ::Bedrock::Threading::Async<bool>
53 OnSessionResponse(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool) /*override*/;
54
55 virtual void OnSessionOpen(
56 ::NetherNet::NetworkID networkID,
57 uint64 sessionId,
58 ::std::string_view assertion,
59 bool isLan
60 ) /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
67 ::NetherNetTransportFactory const& factory,
69 ::std::shared_ptr<void> httpLibrary,
70 ::brstd::copyable_function<bool() const> isNetworkAllowed,
71 ::gsl::not_null<::std::shared_ptr<::ClientIdentityAssertionVerifier>> clientIdentityVerifier,
72 ::std::optional<::NetherNet::NetworkID> networkID
73 );
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCNAPI void* $ctor(
80 ::NetherNetTransportFactory const& factory,
82 ::std::shared_ptr<void> httpLibrary,
83 ::brstd::copyable_function<bool() const> isNetworkAllowed,
84 ::gsl::not_null<::std::shared_ptr<::ClientIdentityAssertionVerifier>> clientIdentityVerifier,
85 ::std::optional<::NetherNet::NetworkID> networkID
86 );
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCNAPI bool $host(::ConnectionDefinition const& definition, ::PrivateKeyManager const& keys);
93
94 MCNAPI void $disconnect();
95
96 MCNAPI bool $isServer() const;
97
98 MCNAPI ::Bedrock::Threading::Async<bool> $OnSessionRequested(
100 uint64,
101 ::std::string_view assertion,
102 ::std::string_view fingerprintJson,
103 bool isLan
104 );
105
106 MCNAPI ::Bedrock::Threading::Async<bool>
107 $OnSessionResponse(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool);
108
109 MCNAPI void
110 $OnSessionOpen(::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view assertion, bool isLan);
111
112
113 // NOLINTEND
114};
Definition ClientIdentityAssertionVerifier.h:14
Definition NetherNetTransportFactory.h:13
Definition PrivateKeyManager.h:10
Definition copyable_function.h:8
Definition ConnectionDefinition.h:5
Definition Connector.h:27
Definition NetworkID.h:17
MCAPI bool $isServer() const
MCAPI ::Bedrock::Threading::Async< bool > $OnSessionRequested(::NetherNet::NetworkID, uint64, ::std::string_view assertion, ::std::string_view fingerprintJson, bool isLan)
MCAPI ::Bedrock::Threading::Async< bool > $OnSessionResponse(::NetherNet::NetworkID, uint64, ::std::string_view, ::std::string_view, bool)
MCAPI void * $ctor(::NetherNetTransportFactory const &factory, ::Connector::ConnectionCallbacks &callbacks, ::std::shared_ptr< void > httpLibrary, ::brstd::copyable_function< bool() const > isNetworkAllowed, ::gsl::not_null<::std::shared_ptr<::ClientIdentityAssertionVerifier > > clientIdentityVerifier, ::std::optional<::NetherNet::NetworkID > networkID)
MCAPI ServerNetherNetConnector(::NetherNetTransportFactory const &factory, ::Connector::ConnectionCallbacks &callbacks, ::std::shared_ptr< void > httpLibrary, ::brstd::copyable_function< bool() const > isNetworkAllowed, ::gsl::not_null<::std::shared_ptr<::ClientIdentityAssertionVerifier > > clientIdentityVerifier, ::std::optional<::NetherNet::NetworkID > networkID)
MCAPI bool $host(::ConnectionDefinition const &definition, ::PrivateKeyManager const &keys)
MCAPI void $OnSessionOpen(::NetherNet::NetworkID networkID, uint64 sessionId, ::std::string_view assertion, bool isLan)
Definition Alias.h:14