28 enum class ServerHealth :
int {
38 virtual void hostServer();
40 virtual ::Social::EduJoinerResponse
41 tryAcceptJoiner(::std::string
const& sessionToken, ::std::string
const& joinerToHostNonce);
43 virtual ::std::string getHostToJoinerNonce(::std::string
const& sessionToken)
const;
45 virtual ::Bedrock::Threading::Async<void> onNextFetchJoiners();
47 virtual ::Bedrock::Threading::Async<::Social::EduFetchTenantSettingsResponse> requestTenantSettings();
49 virtual ::Bedrock::Threading::Async<::Social::EduFetchServersResponse> requestBroadcastedServers();
51 virtual ::Bedrock::Threading::Async<::Social::EduFetchServersResponse>
52 requestServerInfo(::std::vector<::std::string>
const& currentServerIds);
54 virtual ::Bedrock::Threading::Async<::Social::EduAddServerResponse> requestAddServer(::std::string
const& serverId);
56 virtual ::Bedrock::Threading::Async<::Social::EduJoinServerResponse>
57 requestJoinServer(::std::string
const& serverId, ::std::string
const& passcode);
59 virtual void saveCachedServersToDisk(
63 ::std::less<::std::string>,
64 ::std::vector<::std::string>,
65 ::std::vector<::Social::EduDedicatedServerDetails>>
const& servers
68 virtual ::brstd::flat_map<
71 ::std::less<::std::string>,
72 ::std::vector<::std::string>,
73 ::std::vector<::Social::EduDedicatedServerDetails>>
74 loadCachedServersFromDisk();
78 virtual void clearConnection();
80 virtual ::Social::EduHeadlessConnectionHandshake getHandshake()
const;
82 virtual ::std::string getHostIp()
const;
84 virtual int getHostPort()
const;
91 MCNAPI static ::EducationServicesEnvironment& mCachedEnvironment();
99 MCNAPI
void $hostServer();
101 MCNAPI ::Social::EduJoinerResponse
102 $tryAcceptJoiner(::std::string
const& sessionToken, ::std::string
const& joinerToHostNonce);
104 MCNAPI ::std::string $getHostToJoinerNonce(::std::string
const& sessionToken)
const;
106 MCNAPI ::Bedrock::Threading::Async<void> $onNextFetchJoiners();