Skip to content

teamspeak_socket_init

BluscreamFanBoy edited this page Aug 23, 2015 · 1 revision

Description

teamspeak_socket_init($clientquery_port=25639)

This is a Function that initalize a local socket connection to the teamspeak client query and gets and echo the first 3 lines of the response.

Parameters

clientquery_port
The Client Query must be a Integer. If not set it is using the default port for the clientquery(25639).

Return Values

This Function return a simple raw socket for a connection to the teamspeak client query.

Examples

//Create a connection to the current client query
$ts3query = teamspeak_socket_init();
//Create a connection to the current client query with a custom port
$ts3query = teamspeak_socket_init(12058);

Changelog

No Changes

Clone this wiki locally