41 enum class protocolVersion :
int {
106 ::std::string
const& playerName,
107 ::std::string
const& worldName,
111 bool isJoinableThroughServerScreen,
127 ::std::string
const& playerName,
128 ::std::string
const& worldName,
132 bool isJoinableThroughServerScreen,
246 virtual void startAnnouncingServer(
247 ::std::string
const& playerName,
248 ::std::string
const& worldName,
253 bool isJoinableThroughServerScreen,
262 virtual void startServerDiscovery(
::PortPair ports) ;
265 virtual void stopServerDiscovery() ;
271 virtual void addCustomServer(::std::string
const& address,
int port) ;
274 virtual ::std::vector<::PingedCompatibleServer> getServerList() const ;
277 virtual
void clearServerList() ;
280 virtual
void update() ;
283 virtual
float getPingTimeForGUID(::
std::
string const& guid) ;
286 virtual
void checkCanConnectToCustomServerAsync(
287 ::
std::
string hostIpAddress,
289 ::
std::function<
void(::ServerConnectivityTestResult)> callback
293 virtual
void _onDisable() ;
296 virtual
void _onEnable() ;
305 ::
std::vector<::
std::
string> overrideBroadcastAddresses,
307 ::RakNetServerLANVisibility serverLanVisibility,
308 ::PermissionLAN permissionLAN,
309 ::PermissionIPv6 permissionIPv6,
310 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
311 ::
std::function<::
std::unique_ptr<::RakNet::RakPeerInterface,
void (*)(::RakNet::RakPeerInterface*)>()>
312 createUniqueRakPeerFunc
315 MCAPI
void _activate();
323 MCAPI
void _enqueueStateChangeRequest(
324 ::LocatorStateChangeRequest newState,
329 MCAPI ::
std::
string _getHostGuid(::
std::
string const& address,
int port);
331 MCAPI
void _getServerOriginalAddress(::
std::
string& originalAddressToSet, ::
std::
string const& ip);
333 MCAPI
bool _handleUnconnectedPong(
334 ::
std::
string const& data,
335 ::RakNet::
Packet const* p,
337 uint64 insertAtBeginning
340 MCAPI
void _initializeBroadcastAddresses();
342 MCAPI
void _onPingSend(::
std::
string const& guid, ::
std::
string const& ipVersion,
int addr);
345 _onPongReceive(
float& latencyToSet, ::RakNet::RakNetGUID const& guid, uint const& receivedTime,
int ipVersion);
351 MCAPI
void _startServerDiscovery(::
PortPair const& ports);
353 MCAPI
void _stopAnnouncingServer();
355 MCAPI
void _stopServerDiscovery();
357 MCAPI
void _updateNetwork();
359 MCAPI
bool _updateQueuedPings();
361 MCAPI
void _updateState();
368 parseUnconnectedPongPacketData(::
std::
string const& data, ::
std::vector<::
std::
string>& extraData);
377 ::
std::vector<::
std::
string> overrideBroadcastAddresses,
379 ::RakNetServerLANVisibility serverLanVisibility,
380 ::PermissionLAN permissionLAN,
381 ::PermissionIPv6 permissionIPv6,
382 ::Bedrock::NonOwnerPointer<::
AppPlatform> const& appPlatform,
383 ::
std::function<::
std::unique_ptr<::RakNet::RakPeerInterface,
void (*)(::RakNet::RakPeerInterface*)>()>
384 createUniqueRakPeerFunc
397 MCAPI
void $startAnnouncingServer(
398 ::
std::
string const& playerName,
399 ::
std::
string const& worldName,
400 ::Bedrock::NonOwnerPointer<::
AppPlatform> appPlatform,
404 bool isJoinableThroughServerScreen,
409 MCAPI
void $stopAnnouncingServer(::Bedrock::NonOwnerPointer<::
AppPlatform> appPlatform);
411 MCAPI
void $startServerDiscovery(::
PortPair ports);
413 MCAPI
void $stopServerDiscovery();
417 MCAPI
void $addCustomServer(::
std::
string const& address,
int port);
421 MCAPI
void $clearServerList();
423 MCAPI
void $update();
425 MCAPI
float $getPingTimeForGUID(::
std::
string const& guid);
427 MCAPI
void $checkCanConnectToCustomServerAsync(
428 ::
std::
string hostIpAddress,
430 ::
std::function<
void(::ServerConnectivityTestResult)> callback
433 MCAPI
void $_onDisable();
435 MCAPI
void $_onEnable();
441 MCAPI static
void** $vftable();