To disconnect from a TeamSpeak 3 server call
const char* quitMessage;
The unique ID for this server connection handler.
A message like for example "leaving". The string needs to be encoded in UTF-8 format.
ERROR_ok on success, otherwise an error code as defined in
Like with connecting, on successful disconnecting the client will receive an event:
STATUS_DISCONNECTED as defined by the enum ConnectStatus.
errorNumber is expected to be
ERROR_ok as response to calling
Values other than
ERROR_ok occur when the connection has been lost for reasons not initiated by the user, e.g. network error, forcefully disconnected etc.
Should the server be shutdown, the follow event will be called:
const char* shutdownMessage;
Server connection handler ID of the stopped server.
Message announcing the reason for the shutdown sent by the server. Has to be encoded in UTF-8 format.