Disconnecting from a server

To disconnect from a TeamSpeak 3 server call

unsigned int ts3client_stopConnection(serverConnectionHandlerID, á
áquitMessage);á
uint64 serverConnectionHandlerID;
const char* quitMessage;
á

Parameters

Returns ERROR_ok on success, otherwise an error code as defined in public_errors.h.

Like with connecting, on successful disconnecting the client will receive an event:


void onConnectStatusChangeEvent(serverConnectionHandlerID, á
ánewStatus, á
áerrorNumber);á
uint64 serverConnectionHandlerID;
int newStatus;
int errorNumber;
á

Parameters


Should the server be shutdown, the follow event will be called:

void onServerStopEvent(serverConnectionHandlerID, á
áshutdownMessage);á
uint64 serverConnectionHandlerID;
const char* shutdownMessage;
á

Parameters