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: 2.4.12.0
Syntax

[DllImportAttribute("bassenc.dll", CharSet = CharSet.Auto)]
public static bool BASS_Encode_ServerKick(
	int handle,
	string client
)

Parameters

handle
Type: SystemInt32
The encoder handle.
client
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.
Remarks

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.

Platform-specific

This function is not available on Windows CE.

See Also

Reference