Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerNetworkSystem.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/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9#include "mc/deps/nether_net/LogSeverity.h"
10#include "mc/network/NetworkSystem.h"
11#include "mc/network/PacketGroupDefinition.h"
12#include "mc/platform/brstd/function_ref.h"
13
14// auto generated forward declare list
15// clang-format off
16class AppPlatform;
23class Scheduler;
30namespace NetherNet { struct NetworkID; }
31namespace PlayerMessaging { struct NetworkID; }
32// clang-format on
33
34class ServerNetworkSystem : public ::Bedrock::EnableNonOwnerReferences, public ::NetworkSystem {
35public:
36 // ServerNetworkSystem inner types define
37 using DependencyFactory = ::brstd::function_ref<::NetworkSystem::Dependencies()>;
38
40
41public:
42 // prevent constructor by default
43 ServerNetworkSystem();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~ServerNetworkSystem() /*override*/ = default;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
55 ::Scheduler& receiveThread,
56 ::std::vector<::std::string> const& overrideBroadcastAddresses,
57 ::NetworkSystemToggles const& networkToggles,
59 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
60 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
61 ::NetworkSettingOptions const& networkSettingOption,
62 ::PortConfiguration const& portConfig,
63 ::NetherNet::LogSeverity defaultLogSeverity,
64 ::std::optional<::NetherNet::NetworkID> networkId,
66 ::std::optional<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder,
67 ::std::unique_ptr<::IPacketSerializationController> packetController,
68 ::std::shared_ptr<void> httpLibraryToken
69 );
70
71#ifdef LL_PLAT_C
72 MCNAPI ::std::shared_ptr<::SignalingServiceSignInJob> createSignalingServiceSigninJobIfNeeded(
73 ::std::shared_ptr<::SignalingService> signalingService,
74 ::Bedrock::Threading::Async<::std::optional<::PlayerMessaging::NetworkID>>&& playerMessagingId
75 );
76#endif
77
78 MCNAPI ::NetworkIdentifier getLocalNetworkId() const;
79
80 MCNAPI bool host(::ConnectionDefinition const& definition, ::PrivateKeyManager const& keys);
81
82#ifdef LL_PLAT_S
83 MCNAPI void reloadPacketLimitConfig(::PacketGroupDefinition::PacketGroupBuilder&& packetGroupBuilder);
84#endif
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCNAPI void* $ctor(
91 ::Scheduler& receiveThread,
92 ::std::vector<::std::string> const& overrideBroadcastAddresses,
93 ::NetworkSystemToggles const& networkToggles,
95 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
96 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
97 ::NetworkSettingOptions const& networkSettingOption,
98 ::PortConfiguration const& portConfig,
99 ::NetherNet::LogSeverity defaultLogSeverity,
100 ::std::optional<::NetherNet::NetworkID> networkId,
102 ::std::optional<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder,
103 ::std::unique_ptr<::IPacketSerializationController> packetController,
104 ::std::shared_ptr<void> httpLibraryToken
105 );
106 // NOLINTEND
107};
Definition AppPlatform.h:79
Definition EnableNonOwnerReferences.h:7
Definition NonOwnerPointer.h:9
The game spells this as an AsyncImplBase<T> base subobject holding the handle; a member at the same o...
Definition Async.h:13
Definition IPacketSerializationController.h:9
Definition NetworkDebugManager.h:14
Definition NetworkIdentifier.h:10
Definition NetworkSessionOwner.h:9
Definition NetworkStatistics.h:21
Definition PrivateKeyManager.h:10
Definition Scheduler.h:15
MCAPI bool host(::ConnectionDefinition const &definition, ::PrivateKeyManager const &keys)
MCAPI::NetworkIdentifier getLocalNetworkId() const
MCAPI void * $ctor(::Scheduler &receiveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > networkDebugManager, ::Bedrock::NotNullNonOwnerPtr<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::NetworkSettingOptions const &networkSettingOption, ::PortConfiguration const &portConfig, ::NetherNet::LogSeverity defaultLogSeverity, ::std::optional<::NetherNet::NetworkID > networkId, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService, ::std::optional<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder, ::std::unique_ptr<::IPacketSerializationController > packetController, ::std::shared_ptr< void > httpLibraryToken)
MCAPI ServerNetworkSystem(::Scheduler &receiveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > networkDebugManager, ::Bedrock::NotNullNonOwnerPtr<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::NetworkSettingOptions const &networkSettingOption, ::PortConfiguration const &portConfig, ::NetherNet::LogSeverity defaultLogSeverity, ::std::optional<::NetherNet::NetworkID > networkId, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService, ::std::optional<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder, ::std::unique_ptr<::IPacketSerializationController > packetController, ::std::shared_ptr< void > httpLibraryToken)
Definition SignalingServiceSignInJob.h:22
Definition SignalingService.h:37
Definition function_ref.h:60
Definition ConnectionDefinition.h:5
Definition NetworkID.h:17
Definition NetworkSettingOptions.h:9
Definition NetworkSystemToggles.h:11
Definition NetworkSystem.h:54
Definition PacketGroupDefinition.h:22
Definition NetworkID.h:12
Definition PortConfiguration.h:13