User defined client connection notification callback function.
void CALLBACK ClientConnectProc(
HWMENCODE handle,
BOOL connect,
const char *ip
void *user
);
| handle | The encoder handle. |
| connect | The client is connecting? |
| ip | The client's IP address... "xxx.xxx.xxx.xxx:port". |
| user | The user instance data given when BASS_WMA_EncodeSetNotify was called. |
void CALLBACK MyClientConnectProc(HWMENCODE handle, BOOL connect, const char *ip, void *user)
{
if (connect)
printf("%s connected\n", ip);
else
printf("%s disconnected\n", ip);
}
...
BASS_WMA_EncodeSetNotify(handle, MyClientConnectProc, 0); // set the notification callback