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/utility/EnableNonOwnerReferences.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/deps/nether_net/LogSeverity.h"
9#include "mc/network/NetworkSystem.h"
10#include "mc/network/PacketGroupDefinition.h"
11#include "mc/platform/brstd/function_ref.h"
12
13// auto generated forward declare list
14// clang-format off
15class AppPlatform;
22class Scheduler;
27struct PortMappingInfo;
28namespace NetherNet { struct NetworkID; }
29// clang-format on
30
32public:
33 // prevent constructor by default
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 0
40 virtual ~ServerNetworkSystem() /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
47 ::Scheduler& receiveThread,
48 ::std::vector<::std::string> const& overrideBroadcastAddresses,
49 ::NetworkSystemToggles const& networkToggles,
51 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
52 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
53 ::NetworkSettingOptions const& networkSettingOption,
54 ::PortMappingInfo const& portMappingInfo,
55 ::NetherNet::LogSeverity defaultLogSeverity,
56 ::std::optional<::NetherNet::NetworkID> networkId,
58 ::std::optional<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder,
59 ::std::unique_ptr<::IPacketSerializationController> packetController
60 );
61
62 MCNAPI ::std::unique_ptr<::NetworkStatistics> _createNetworkStatistics(
63 ::NetworkSystemToggles const& networkToggles,
65 );
66
67 MCNAPI ::NetworkIdentifier getLocalNetworkId() const;
68
69 MCNAPI ::std::string getMultiplayerCorrelationId() const;
70
71 MCNAPI bool host(::ConnectionDefinition const& definition);
72
74 // NOLINTEND
75
76public:
77 // static functions
78 // NOLINTBEGIN
79 MCNAPI static ::NetworkSystem::Dependencies _createConstructionDependencies(
81 ::Scheduler& receiveThread,
82 ::std::vector<::std::string> const& overrideBroadcastAddresses,
83 ::NetworkSystemToggles const& networkToggles,
84 ::NetherNetTransportFactory const& transportFactory,
85 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
86 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
87 ::NetworkSettingOptions const& networkSettingOptions,
88 ::std::optional<::NetherNet::NetworkID> networkId,
90 ::std::unique_ptr<::IPacketSerializationController> packetController
91 );
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCNAPI void* $ctor(
98 ::Scheduler& receiveThread,
99 ::std::vector<::std::string> const& overrideBroadcastAddresses,
100 ::NetworkSystemToggles const& networkToggles,
102 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
103 ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner> networkSessionOwner,
104 ::NetworkSettingOptions const& networkSettingOption,
105 ::PortMappingInfo const& portMappingInfo,
106 ::NetherNet::LogSeverity defaultLogSeverity,
107 ::std::optional<::NetherNet::NetworkID> networkId,
109 ::std::optional<::PacketGroupDefinition::PacketGroupBuilder> packetGroupBuilder,
110 ::std::unique_ptr<::IPacketSerializationController> packetController
111 );
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCNAPI void $dtor();
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
124
125 MCNAPI static void** $vftableForConnectionCallbacks();
126
127 MCNAPI static void** $vftable();
128
129 MCNAPI static void** $vftableForIPSupportInterface();
130 // NOLINTEND
131};
Definition AppPlatform.h:50
Definition EnableNonOwnerReferences.h:7
Definition NonOwnerPointer.h:9
Definition IPacketSerializationController.h:9
Definition NetherNetTransportFactory.h:17
Definition NetworkDebugManager.h:14
Definition NetworkIdentifier.h:10
Definition NetworkSessionOwner.h:9
Definition NetworkStatistics.h:24
Definition NetworkSystem.h:40
Definition Scheduler.h:13
Definition ServerNetworkSystem.h:31
static MCAPI ::NetworkSystem::Dependencies _createConstructionDependencies(::ServerNetworkSystem *pThis, ::Scheduler &receiveThread, ::std::vector<::std::string > const &overrideBroadcastAddresses, ::NetworkSystemToggles const &networkToggles, ::NetherNetTransportFactory const &transportFactory, ::Bedrock::NotNullNonOwnerPtr<::AppPlatform > appPlatform, ::Bedrock::NotNullNonOwnerPtr<::NetworkSessionOwner > networkSessionOwner, ::NetworkSettingOptions const &networkSettingOptions, ::std::optional<::NetherNet::NetworkID > networkId, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService, ::std::unique_ptr<::IPacketSerializationController > packetController)
MCAPI void reloadPacketLimitConfig(::PacketGroupDefinition::PacketGroupBuilder &&packetGroupBuilder)
MCAPI::std::string getMultiplayerCorrelationId() const
static MCAPI void ** $vftableForConnectionCallbacks()
static MCAPI void ** $vftable()
MCAPI::NetworkIdentifier getLocalNetworkId() const
MCAPI ::std::unique_ptr<::NetworkStatistics > _createNetworkStatistics(::NetworkSystemToggles const &networkToggles, ::Bedrock::NonOwnerPointer<::NetworkDebugManager > const &networkDebugManager)
static MCAPI void ** $vftableForNetworkEnableDisableListener()
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, ::PortMappingInfo const &portMappingInfo, ::NetherNet::LogSeverity defaultLogSeverity, ::std::optional<::NetherNet::NetworkID > networkId, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService, ::std::optional<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder, ::std::unique_ptr<::IPacketSerializationController > packetController)
MCAPI void $dtor()
static MCAPI void ** $vftableForIPSupportInterface()
MCAPI bool host(::ConnectionDefinition const &definition)
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, ::PortMappingInfo const &portMappingInfo, ::NetherNet::LogSeverity defaultLogSeverity, ::std::optional<::NetherNet::NetworkID > networkId, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService, ::std::optional<::PacketGroupDefinition::PacketGroupBuilder > packetGroupBuilder, ::std::unique_ptr<::IPacketSerializationController > packetController)
Definition SignalingService.h:36
Definition ConnectionDefinition.h:5
Definition NetworkSettingOptions.h:9
Definition NetworkSystemToggles.h:5
Definition PacketGroupDefinition.h:21
Definition PortMappingInfo.h:5