extends |
Protocol |
---|
GameSpy3 Protocol class Given the ability for non utf-8 characters to be used as hostnames, player names, etc... this version returns all strings utf-8 encoded. To access the proper version of a string response you must use Str::utf8ToIso() on the specific response.
Methods | ||
---|---|---|
public
|
challengeParseAndApply(Buffer $challenge_buffer): bool
|
# |
public
|
processResponse(): array
|
# |
protected
|
cleanPackets(array $packets = []): array
|
# |
protected
|
processDetails(Buffer &$buffer, Result &$result): void
|
# |
protected
|
processPlayersAndTeams(Buffer &$buffer, Result &$result)
|
# |
Methods inherited from GameQ\Protocol |
---|
__construct(), __toString(), portDiff(), findQueryPort(), joinLink(), name(), nameLong(), state(), getProtocol(), transport(), options(), getPacket(), packetResponse(), hasChallenge(), challengeApply(), getNormalize(), beforeSend(), |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [
self::PACKET_CHALLENGE => "\xFE\xFD\x09\x10\x20\x30\x40",
self::PACKET_ALL => "\xFE\xFD\x00\x10\x20\x30\x40%s\xFF\xFF\xFF\x01",
]
|
# |
protected
|
string
|
$protocol = 'gamespy3'
|
# |
protected
|
string
|
$name = 'gamespy3'
|
# |
protected
|
string
|
$name_long = "GameSpy3 Server"
|
# |
protected
|
string
|
$packetSplit = "/\\x00\\x00\\x01/m"
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $responses, $process_methods, $packets_response, $result, $options, $state, $normalize, $join_link |