PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\network\query\QueryHandler Class Reference
+ Inheritance diagram for pocketmine\network\query\QueryHandler:
+ Collaboration diagram for pocketmine\network\query\QueryHandler:

Public Member Functions

 __construct (private Server $server)
 getPattern ()
 handle (AdvancedNetworkInterface $interface, string $address, int $port, string $packet)
 regenerateToken ()

Static Public Member Functions

static getTokenString (string $token, string $salt)

Public Attributes

const HANDSHAKE = 9
const STATISTICS = 0

Detailed Description

Definition at line 42 of file QueryHandler.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\query\QueryHandler::__construct ( private Server  $server)

Definition at line 51 of file QueryHandler.php.

Member Function Documentation

◆ getPattern()

pocketmine\network\query\QueryHandler::getPattern ( )

Returns a preg_match() compatible regex pattern used to filter packets on this handler. Only packets matching this pattern will be delivered to the handler.

Implements pocketmine\network\RawPacketHandler.

Definition at line 69 of file QueryHandler.php.

◆ getTokenString()

static pocketmine\network\query\QueryHandler::getTokenString ( string  $token,
string  $salt 

Definition at line 82 of file QueryHandler.php.

◆ handle()

pocketmine\network\query\QueryHandler::handle ( AdvancedNetworkInterface  $interface,
string  $address,
int  $port,
string  $packet 

Implements pocketmine\network\RawPacketHandler.

Definition at line 86 of file QueryHandler.php.

◆ regenerateToken()

pocketmine\network\query\QueryHandler::regenerateToken ( )

Definition at line 77 of file QueryHandler.php.

Member Data Documentation


const pocketmine\network\query\QueryHandler::HANDSHAKE = 9

Definition at line 48 of file QueryHandler.php.


const pocketmine\network\query\QueryHandler::STATISTICS = 0

Definition at line 49 of file QueryHandler.php.

The documentation for this class was generated from the following file: