BASS.NET API for the Un4seen BASS Audio LibraryBassEncBASS_Encode_ServerKick Method BASS.NET API for the Un4seen BASS Audio Library
Kicks clients from a server.

Namespace: Un4seen.Bass.AddOn.Enc
Assembly: Bass.Net (in Bass.Net.dll) Version:

public static bool BASS_Encode_ServerKick(
	int handle,
	string client


Type: SystemInt32
The encoder handle.
Type: SystemString
The client(s) to kick... "" (empty string) = all clients. Unless a port number is included, this string is compared with the start of the connected clients' IP address.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.

The clients may not be kicked immediately, but shortly after the call. If the server has been setup with an ENCODECLIENTPROC callback function, that will receive notification of the disconnections.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILNo matching clients were found.


This function is not available on Windows CE.

See Also