Maby this is usefull.... got this from the sdk documentation.
Connecting to a server
To connect to a server, a client application is required to request an identity from the Client Lib. This string should be requested
only once and then locally stored in the applications configuration. The next time the application connects to a server, the
identity should be read from the configuration and reused again.
unsigned int ts3client_createIdentity(result);
Address of a variable that receives the identity string, encoded in UTF-8.
Returns ERROR_ok on success, otherwise an error code as defined in public_errors.h. If an error occured, the result
string is uninitialized and must not be accessed.
The result string must be released using ts3client_freeMemory. If an error has occured, the result string
is uninitialized and must not be released.
Once a server connection handler has been spawned and an identity is available, connect to a TeamSpeak 3 server with
unsigned int ts3client_startConnection(serverConnectionHandlerI D, identity, ip,
port, nickname, defaultChannelArray, defaultChannelPassword, serverPassword);
const char* identity;
const char* ip;
unsigned int port;
const char* nickname;
const char** defaultChannelArray;
const char* defaultChannelPassword;
const char* serverPassword;
Unique identifier for this server connection. Created with ts3client_spawnNewServerConnectionHandler
The clients identity. This string has to be created by calling ts3client_createIdentity. Please note an application
should create the identity only once, store the string locally and reuse it for future connections.
Hostname or IP of the TeamSpeak 3 server.
If you pass a hostname instead of an IP, the Client Lib will try to resolve it to an IP, but the function may block for an
unusually long period of time while resolving is taking place. If you are relying on the function to return quickly, we
recommend to resolve the hostname yourself (e.g. asynchronously) and then call ts3client_startConnection with
the IP instead of the hostname.
UDP port of the TeamSpeak 3 server, by default 9987. TeamSpeak 3 uses UDP. Support for TCP might be added in the
On login, the client attempts to take this nickname on the connected server. Note this is not necessarily the actually assigned
nickname, as the server can modifiy the nickname ("gandalf_1" instead the requested "gandalf") or refuse blocked names.
String array defining the path to a channel on the TeamSpeak 3 server. If the channel exists and the user has sufficient rights
and supplies the correct password if required, the channel will be joined on login.
To define the path to a subchannel of arbitrary level, create an array of channel names detailing the position of the default
channel (e.g. "grandparent", "parent", "mydefault", ""). The array is terminated with a empty string.
Pass NULL to join the servers default channel.
Password for the default channel. Pass an empty string if no password is required or no default channel is specified.
Password for the server. Pass an empty string if the server does not require a password.
All strings need to be encoded in UTF-8 format.
(hope this isn't to mutch text. its that i cant copy any links in here....