Skip to content

DedicatedQueryNetworkInterface ​

final class · pocketmine\network\query\DedicatedQueryNetworkInterface · source

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) : void

blockAddress() ​

php
public function blockAddress(string $address, int $timeout = 300) : void

sendRawPacket() ​

php
public function sendRawPacket(string $address, int $port, string $payload) : void

setName() ​

php
public function setName(string $name) : void

setNetwork() ​

php
public function setNetwork(\pocketmine\network\Network $network) : void

shutdown() ​

php
public function shutdown() : void

start() ​

php
public function start() : void

tick() ​

php
public function tick() : void

unblockAddress() ​

php
public function unblockAddress(string $address) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.