3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/cereal/ContextArea.h"
7#include "mc/deps/core/threading/Async.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9#include "mc/network/StubServerLocator.h"
10#include "mc/platform/threading/UniqueLock.h"
11#include "mc/world/level/GameType.h"
24namespace Social {
struct Nonce; }
58 ServerData& operator=(ServerData
const&);
59 ServerData(ServerData
const&);
88 NetherNetServerLocator& operator=(NetherNetServerLocator
const&);
89 NetherNetServerLocator(NetherNetServerLocator
const&);
90 NetherNetServerLocator();
95 virtual ~NetherNetServerLocator() =
default;
97 virtual void startAnnouncingServer(
98 ::std::string
const& playerName,
99 ::std::string
const& worldName,
103 bool isJoinableThroughServerScreen,
110 virtual void stopAnnouncingServer() ;
112 virtual void startServerDiscovery(
::PortPair ports) ;
114 virtual void stopServerDiscovery() ;
118 virtual ::std::vector<::PingedCompatibleServer> getServerList() const ;
120 virtual
void update() ;
126 MCNAPI NetherNetServerLocator(
128 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
129 ::Bedrock::NonOwnerPointer<::Bedrock::Http::DispatcherInterface> dispatcher,
140 ::
std::vector<::
std::
string> urls,
163 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
164 ::Bedrock::NonOwnerPointer<::Bedrock::Http::DispatcherInterface> dispatcher,
173 ::
std::
string const& playerName,
174 ::
std::
string const& worldName,
178 bool isJoinableThroughServerScreen,
182 ::Social::Nonce const& nonce
Definition AsynchronousIPResolver.h:5
Definition DispatcherInterface.h:17
MCAPI ::Bedrock::Threading::Async<::PingedCompatibleServer > _pingExternalServer(::AsynchronousIPResolver const &futureIP, ushort port, ::std::vector<::std::string > urls, uint64 index)
MCAPI void $startAnnouncingServer(::std::string const &playerName, ::std::string const &worldName, ::GameType gameType, int numPlayers, int maxNumPlayers, bool isJoinableThroughServerScreen, bool isEditorWorld, bool isHardcore, ::ServerSupportedAuthenticationTypes supportedAuth, ::Social::Nonce const &nonce)
MCAPI void $stopAnnouncingServer()
MCAPI void $startServerDiscovery(::PortPair ports)
MCAPI void * $ctor(::Bedrock::NotNullNonOwnerPtr<::NetherNetConnector > &&connector, ::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform, ::Bedrock::NonOwnerPointer<::Bedrock::Http::DispatcherInterface > dispatcher, ::Bedrock::NonOwnerPointer<::SignalingService > signalingService)
MCAPI void clearServerList()
MCAPI void _setDiscoveryRequestCallback(bool enable)
static MCAPI ::PingedCompatibleServer _transformFrom(::NetherNet::NetworkID const &networkID, ::NetherNetServerLocator::ServerData &&serverData)
MCAPI void _cacheDiscoveryResponseData()
MCAPI void $stopServerDiscovery()
MCAPI void $addCustomServer(::AsynchronousIPResolver const &futureIP, int port)
MCAPI ::std::vector<::PingedCompatibleServer > $getServerList() const
MCAPI void _setDiscoveryResponseCallback(bool enable)
MCAPI bool _onDiscoveryRequest(::cereal::SchemaWriter &writer, ::cereal::ContextArea area)
Definition SignalingService.h:37
Definition StubServerLocator.h:19
Definition NetherNetConnector.h:31
Definition NetherNetServerLocator.h:37
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
Definition NetworkID.h:17
Definition PingedCompatibleServer.h:5
Definition ServerSupportedAuthenticationTypes.h:5
Definition ReflectionCtx.h:11
Definition SchemaWriter.h:16