extends |
CSQuery |
|---|
SQP (Server Query Protocol) implementation. This is based on Unity Technologies' SQP protocol. Used for querying Unity-based game servers, like TF2E, Unturned, etc.
| Methods | ||
|---|---|---|
public
|
__construct(string $address, int $queryport)
|
# |
public
|
query_server(bool $getPlayers = true, bool $getRules = true): bool
|
# |
| Constants | |||
|---|---|---|---|
public
|
QueryRequestType = 0x00
|
# | |
public
|
QueryResponseType = 0x00
|
# | |
public
|
ChallengeRequestType = 0x01
|
# | |
public
|
ChallengeResponseType = 0x01
|
# | |
public
|
Version = 1
|
# | |
public
|
DefaultMaxPacketSize = 1400
|
# | |
public
|
ServerInfo = 0x01
|
# | |
public
|
ServerRules = 0x02
|
# | |
public
|
PlayerInfo = 0x04
|
# | |
public
|
TeamInfo = 0x08
|
# | |
public
|
Metrics = 0x10
|
# | |
| Properties | |||
|---|---|---|---|
public
|
string
|
$name = 'SQP'
|
# |
public
|
string
|
$protocol = 'SQP'
|
# |
public
|
array<string>
|
$supportedGames = ['Unity']
|
# |
| Properties inherited from Clansuite\ServerQuery\CSQuery |
|---|
$address, $queryport, $hostport, $online, $gamename, $gameversion, $servertitle, $mapname, $maptitle, $gametype, $numplayers, $maxplayers, $steamAppID, $password, $nextmap, $players, $playerkeys, $playerteams, $maplist, $rules, $errstr, $response, $game_series_list, $debug, $udpClient |