extends |
Protocol |
---|
Teamspeak 2 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)
|
# |
public
|
processResponse(): 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 => "sel %d\x0asi\x0a",
self::PACKET_CHANNELS => "sel %d\x0acl\x0a",
self::PACKET_PLAYERS => "sel %d\x0apl\x0a",
]
|
# |
protected
|
string
|
$transport = self::TRANSPORT_TCP
|
# |
protected
|
string
|
$protocol = 'teamspeak2'
|
# |
protected
|
string
|
$name = 'teamspeak2'
|
# |
protected
|
string
|
$name_long = "Teamspeak 2"
|
# |
protected
|
string
|
$join_link = "teamspeak://%s:%d/"
|
# |
protected
|
array
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'hostname' => 'server_name',
'password' => 'server_password',
'numplayers' => 'server_currentusers',
'maxplayers' => 'server_maxusers',
],
'player' => ['id' => 'p_id', 'team' => 'c_id', 'name' => 'nick'],
'team' => ['id' => 'id', 'name' => 'name'],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $responses, $process_methods, $packets_response, $result, $options, $state, |