DedicatedQueryNetworkInterface
Implements AdvancedNetworkInterface
This is a supplementary network interface to maintain Query functionality when the RakLibInterface is not registered.
Normally, Query runs on the same port as RakLib does, so Query handles packets coming in on RakLib's socket instead of using its own interface.
However, it's necessary to have a separate interface for the cases where the RakLib interface is either not registered or running on a different port than Query.
Methods
__construct()
php
public function __construct(string $ip, int $port, bool $ipV6, \Logger $logger)addRawPacketFilter()
php
public function addRawPacketFilter(string $regex) : voidblockAddress()
php
public function blockAddress(string $address, int $timeout = 300) : voidsendRawPacket()
php
public function sendRawPacket(string $address, int $port, string $payload) : voidsetName()
php
public function setName(string $name) : voidsetNetwork()
php
public function setNetwork(\pocketmine\network\Network $network) : voidshutdown()
php
public function shutdown() : voidstart()
php
public function start() : voidtick()
php
public function tick() : voidunblockAddress()
php
public function unblockAddress(string $address) : void