OnClientConnect Event

Indicates a client connected.

Syntax

NSUnicastMgr_OnClientConnect( datetime, status, clientid, ipaddress, port )

Parameters

datetime

A Date value indicating the time the event occurred, expressed in Greenwich Mean Time (GMT).

status

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

clientid

A Long value specifying the client ID.

ipaddress

A String containing the client's IP address.

port

An Integer specifying the TCP port used by the client.

Remarks

This event is called whenever a client connects. It does not indicate play activity. To receive notification of this event, the ClientEvents property must be set to TRUE (the default value).

Example

Sub NSUnicastMgr_OnClientConnect( datetime, status, clientid, ip, port )
   MsgBox( "client at " & ip " connected )
End Sub

See Also

OnClientDisconnect, OnClientPlay, OnClientStop, OnClientStride

© 1996-1998 Microsoft Corporation. All rights reserved.