Windows Media Services SDK banner art
PreviousNext

OnClientDisconnect Event

Fired when a client is disconnected.

Syntax

NSChannelMgr_OnClientDisconnect( ClientAddress, DeliveryMode, ClientID )

Parameters

ClientAddress

A String value specifying the IP address of the disconnected client.

DeliveryMode

A Long value indicating the delivery mode of the disconnected client.

ClientID

A Long value indicating the client ID of the disconnected client.

Remarks

DeliveryMode values are enumeration type of the MCMDELIVERYMODE. These values can be combined. The following values are supported by the Windows Media Station control.

Value Mnemonic Description
2 MCM_DM_SESSIONLESS_3PH Sessionless: Data streamed via multicast with headers transferred to clients by some mechanism outside Windows Media Station service.
8 MCM_DM_DISTRIBUTION Distribution: Data streamed via a point-to-point TCP connection.

Example

Sub NSChannelMgr_OnClientDisconnect( Client, Mode, ID )
  Select Case Mode
    Case  2 str = "sessionless"
    Case  8 str = "distribution"
    Case 10 str = "sessionless and distribution"
End Select
MsgBox ("Client at " & Client.Address & "is disconnected " & str _
    & "delivery mode connection.")
End Sub

See Also

Channel.DeliveryMode

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.