extends |
Protocol |
---|
Teamspeak 3 Protocol Class All values are utf8 encoded upon processing This code ported from GameQ v1/v2. Credit to original author(s) as I just updated it to work within this new system.
Methods | ||
---|---|---|
public
|
beforeSend(Server $server): void
|
# |
public
|
processResponse(): array
|
# |
protected
|
processProperties($data): array
|
# |
protected
|
processDetails(string $data, Result &$result): void
|
# |
protected
|
processChannels(string $data, Result &$result): void
|
# |
protected
|
processPlayers(string $data, Result &$result): void
|
# |
Methods inherited from GameQ\Protocol |
---|
__construct(), __toString(), portDiff(), findQueryPort(), joinLink(), name(), nameLong(), state(), getProtocol(), transport(), options(), getPacket(), packetResponse(), hasChallenge(), challengeParseAndApply(), challengeApply(), getNormalize(), |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [
self::PACKET_DETAILS => "use port=%d\x0Aserverinfo\x0A",
self::PACKET_PLAYERS => "use port=%d\x0Aclientlist\x0A",
self::PACKET_CHANNELS => "use port=%d\x0Achannellist -topic\x0A",
]
|
# |
protected
|
string
|
$transport = self::TRANSPORT_TCP
|
# |
protected
|
string
|
$protocol = 'teamspeak3'
|
# |
protected
|
string
|
$name = 'teamspeak3'
|
# |
protected
|
string
|
$name_long = "Teamspeak 3"
|
# |
protected
|
string
|
$join_link = "ts3server://%s?port=%d"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'hostname' => 'virtualserver_name',
'password' => 'virtualserver_flag_password',
'numplayers' => 'numplayers',
'maxplayers' => 'virtualserver_maxclients',
],
'player' => ['id' => 'clid', 'team' => 'cid', 'name' => 'client_nickname'],
'team' => ['id' => 'cid', 'name' => 'channel_name'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $responses, $process_methods, $packets_response, $result, $options, $state, |