| Methods |
public
|
__construct(null|string $address = null, null|int $queryport = null)
Initializes the Ventrilo query instance.
Initializes the Ventrilo query instance.
Parameters
| $address |
The server address to query
|
| $queryport |
The query port for the Ventrilo server
|
Overrides
|
#
|
public
|
query_server(bool $getPlayers = true, bool $getRules = true): bool
Queries the Ventrilo server and populates server information. Sends a UDP query packet to the server and processes the encrypted response
to extract server details, player information, and rules.
Queries the Ventrilo server and populates server information. Sends a UDP query packet to the server and processes the encrypted response
to extract server details, player information, and rules.
Parameters
| $getPlayers |
Whether to retrieve player information
|
| $getRules |
Whether to retrieve server rules/settings
|
Returns
True on successful query, false on failure
Overrides
|
#
|
public
|
query(ServerAddress $addr): ServerInfo
Performs a query on the specified Ventrilo server address. Updates internal state with server information and returns a ServerInfo object
containing the query results.
Performs a query on the specified Ventrilo server address. Updates internal state with server information and returns a ServerInfo object
containing the query results.
Parameters
| $addr |
The server address and port to query
|
Returns
Server information including status, players, and settings
Implements
|
#
|
public
|
getProtocolName(): string
Returns the protocol name for Ventrilo.
Returns the protocol name for Ventrilo.
Returns
The protocol identifier 'ventrilo'
Implements
|
#
|
public
|
getVersion(ServerInfo $info): string
Extracts the Ventrilo server version from server information.
Extracts the Ventrilo server version from server information.
Parameters
| $info |
The server information object
|
Returns
The server version string, or 'unknown' if not available
Implements
|
#
|
protected
|
processPackets(array<mixed> $packets): array<mixed>
Process and decrypt raw Ventrilo packets (array of binary strings)
and return parsed associative array.
Process and decrypt raw Ventrilo packets (array of binary strings)
and return parsed associative array.
Throws
|
#
|
protected
|
decryptPackets(array<mixed> $packets): string
Decrypt Ventrilo header/data packets and return combined plaintext string.
Decrypt Ventrilo header/data packets and return combined plaintext string.
Throws
|
#
|