PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
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 )
static

Definition at line 82 of file QueryHandler.php.

◆ handle()

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

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

◆ HANDSHAKE

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

Definition at line 48 of file QueryHandler.php.

◆ STATISTICS

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: