OnClientDisconnect Event

This event is 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 an enumeration of type MCMDELIVERYMODE. The following values are supported by the Station Manager control:

Value Mnemonic Description
2 MCM_DM_SESSIONLESS_3PH Sessionless: data streamed via multicast with headers transferred to clients by some mechanism external to MCM
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"
End Select
  MsgBox "Client at " & Client.Address & "dropped " & str _
    & "delivery mode connection"
End Sub

See Also

Channel.DeliveryMode

© 1996-1998 Microsoft Corporation. All rights reserved.