extends |
CSQuery |
|---|---|
implements |
ProtocolInterface |
DDnet protocol implementation. Based on Teeworlds protocol. Server: https://ddnet.org/status/#server-0 Official website: https://ddnet.org Protocol: https://ddnet.org/docs/libtw2/protocol/ Packet: https://ddnet.org/docs/libtw2/packet/ Connection: https://ddnet.org/docs/libtw2/connection/
| Methods | ||
|---|---|---|
public
|
__construct(?string $address = null, ?int $queryport = null)
|
# |
public
|
getServerLink(): string
|
# |
public
|
query_server(bool $getPlayers = true, bool $getRules = true): bool
|
# |
public
|
getProtocolName(): string
|
# |
public
|
getVersion(ServerInfo $info): string
|
# |
public
|
getQueryString(ServerAddress $address): string
|
# |
public
|
parseResponseData(string $data): ServerInfo
|
# |
public
|
query(ServerAddress $addr): ServerInfo
|
# |
| Properties | |||
|---|---|---|---|
public
|
string
|
$name = 'DDnet'
|
# |
public
|
array<string>
|
$supportedGames = ['DDnet']
|
# |
public
|
string
|
$protocol = 'ddnet'
|
# |
public
|
array<string>
|
$game_series_list = ['Teeworlds']
|
# |
public
|
string
|
$gameport = '8303'
|
# |
| 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, $debug, $udpClient |