Windows Media Services SDK banner art
PreviousNext

OnClientConnect Event

Indicates a client connected.

Syntax

NSUnicastMgr_OnClientConnect( DateTime, Status, ClientID, IPAddress, Port )

Parameters

DateTime

A Date value indicating when the event occurred, expressed in Greenwich mean time.

Status

A Long value specifying the HRESULT error code passed back when this event is fired.

ClientID

A Long value specifying the client ID.

IPAddress

A String value containing the IP address of the client.

Port

An Integer specifying the Transmission Control Protocol (TCP) port used by the client.

Remarks

This event is called whenever a client connects. It does not indicate play activity. This event is never fired unless the ClientEvents property is set to True.

Example

Sub NSUnicastMgr_OnClientConnect( DateTime, Status, ClientID, IPAddress, Port )
   MsgBox ("Client at " & IPAddress & " is connected.")
End Sub

See Also

OnClientDisconnect, OnClientPlay, OnClientStop, OnClientStride

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.