Methods |
public
|
challengeParseAndApply(Buffer $challenge_buffer): bool
Parse the challenge response and apply it to all the packet types
Parse the challenge response and apply it to all the packet types
Throws
Overrides
|
#
|
public
|
processResponse(): array
Process the response
|
#
|
protected
|
processPackets($packet_id, array $packets = []): string
Process the split packets and decompress if necessary
Process the split packets and decompress if necessary
Throws
Overriden by
|
#
|
protected
|
processDetails(Buffer $buffer): mixed
Handles processing the details data into a usable format
Handles processing the details data into a usable format
Throws
Overriden by
|
#
|
protected
|
processDetailsGoldSource(Buffer $buffer): array
Handles processing the server details from goldsource response
Handles processing the server details from goldsource response
Throws
|
#
|
protected
|
processPlayers(Buffer $buffer): mixed
Handles processing the player data into a usable format
Handles processing the player data into a usable format
Overriden by
|
#
|
protected
|
processRules(Buffer $buffer): mixed
Handles processing the rules data into a usable format
Handles processing the rules data into a usable format
Overriden by
|
#
|
Properties |
protected
|
|
$packets = [
self::PACKET_CHALLENGE => "\xFF\xFF\xFF\xFF\x56\x00\x00\x00\x00",
self::PACKET_DETAILS => "\xFF\xFF\xFF\xFFTSource Engine Query\x00%s",
self::PACKET_PLAYERS => "\xFF\xFF\xFF\xFF\x55%s",
self::PACKET_RULES => "\xFF\xFF\xFF\xFF\x56%s",
]
Array of packets we want to look up.
Each key should correspond to a defined method in this or a parent class
Array of packets we want to look up.
Each key should correspond to a defined method in this or a parent class
|
#
|
protected
|
|
$responses = [
"\x49" => "processDetails",
"\x6d" => "processDetailsGoldSource",
"\x44" => "processPlayers",
"\x45" => "processRules",
]
Use the response flag to figure out what method to run
Use the response flag to figure out what method to run
|
#
|
protected
|
|
$protocol = 'source'
The query protocol used to make the call
The query protocol used to make the call
|
#
|
protected
|
|
$name = 'source'
String name of this protocol class
String name of this protocol class
|
#
|
protected
|
|
$name_long = "Source Server"
Longer string name of this protocol class
Longer string name of this protocol class
|
#
|
protected
|
|
$source_engine = self::SOURCE_ENGINE
Define the Source engine type. By default it is assumed to be Source
Define the Source engine type. By default it is assumed to be Source
|
#
|
protected
|
|
$join_link = "steam://connect/%s:%d/"
The client join link
|
#
|
protected
|
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'gametype' => 'game_descr',
'hostname' => 'hostname',
'mapname' => 'map',
'maxplayers' => 'max_players',
'mod' => 'game_dir',
'numplayers' => 'num_players',
'password' => 'password',
],
'player' => ['name' => 'name', 'score' => 'score', 'time' => 'time'],
]
Normalize settings for this protocol
Normalize settings for this protocol
|
#
|