QueryHandler
in package
implements
RawPacketHandler
Interfaces, Classes, Traits and Enums
Table of Contents
- HANDSHAKE = 9
- STATISTICS = 0
- $lastToken : string
- $logger : Logger
- $server : Server
- $token : string
- __construct() : mixed
- getPattern() : string
- 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.
- getTokenString() : int
- handle() : bool
- regenerateToken() : void
Constants
HANDSHAKE
public
mixed
HANDSHAKE
= 9
STATISTICS
public
mixed
STATISTICS
= 0
Properties
$lastToken
private
string
$lastToken
$logger
private
Logger
$logger
$server
private
Server
$server
$token
private
string
$token
Methods
__construct()
public
__construct(Server $server) : mixed
Parameters
- $server : Server
Return values
mixed —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.
public
getPattern() : string
Return values
string —getTokenString()
public
static getTokenString(string $token, string $salt) : int
Parameters
- $token : string
- $salt : string
Return values
int —handle()
public
handle(AdvancedNetworkInterface $interface, string $address, int $port, string $packet) : bool
Parameters
- $interface : AdvancedNetworkInterface
- $address : string
- $port : int
- $packet : string
Return values
bool —regenerateToken()
public
regenerateToken() : void