RakLibServer
Extends Thread
Properties
$address protected
php
protected \pocketmine\thread\NonThreadSafeValue $address$antiSpoofingCookies 5.46.0
php
public bool $antiSpoofingCookies$logger
php
public \pocketmine\thread\log\ThreadSafeLogger $logger$mainPath protected
php
protected string $mainPath$mainToThreadBuffer
php
public \pmmp\thread\ThreadSafeArray $mainToThreadBuffer$maxMtuSize
php
public int $maxMtuSize$protocolVersion
php
public int $protocolVersion$ready protected
php
protected bool $ready$relayPort 5.46.0 protected
php
protected int $relayPort$relayToken 5.46.0
php
public string $relayToken$serverId
php
public int $serverId$sleeperEntry
php
public \pocketmine\snooze\SleeperHandlerEntry $sleeperEntry$threadToMainBuffer
php
public \pmmp\thread\ThreadSafeArray $threadToMainBufferMethods
__construct()
php
public function __construct(\pocketmine\thread\log\ThreadSafeLogger $logger, \pmmp\thread\ThreadSafeArray $mainToThreadBuffer, \pmmp\thread\ThreadSafeArray $threadToMainBuffer, \raklib\utils\InternetAddress $address, int $serverId, int $maxMtuSize, int $protocolVersion, \pocketmine\snooze\SleeperHandlerEntry $sleeperEntry, string $relayToken = "", bool $antiSpoofingCookies = false)getRelayPort() 5.46.0
php
public function getRelayPort() : intLoopback port of the relay socket when the UDP port is shared with the NetherNet bridge, 0 otherwise.
getThreadName()
php
public function getThreadName() : stringonRun() protected
php
protected function onRun() : voidstartAndWait()
php
public function startAndWait(int $options = \pmmp\thread\Thread::INHERIT_NONE) : void