WMEncoder.OnClientConnect
The OnClientConnect event receives an event notice indicating that a client has connected to a computer running an encoding application.
Syntax
WMEncoder.OnClientConnect(protocol, strIPAddr)
Parameters
protocol
[in] Member of a WMENC_BROADCAST_PROTOCOL enumeration type containing the broadcast protocol.
strIPAddr
[in] String containing the IP address of the client.
Return Values
This event does not return a value.
Example Code
Private Sub Encoder_OnClientConnect( _
ByVal protocol As WMEncoderLib.WMENC_BROADCAST_PROTOCOL, _
ByVal sIPAddr As String)
Select Case WMENC_PROTOCOL_HTTP
If sIPAddr = "xxx.xxx.xxx.xxx" Then
' Handle a specific IP address.
End If
End Select
End Sub
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also