Makes a connection to a unicast server.
Syntax
NSUnicastMgr.Connect( ServerName )
Parameters
ServerName
A String specifying the name of the server.
Return Values
Returns an ActiveX HRESULT error code.
Remarks
Specifying LocalHost as ServerName makes a connection to the computer on which the script is running.
Example
The following VBScript indicates an attempt to establish a connection to a NetShow server running on the same computer. If the connection fails, it provides a description of the reason for the failure.
On Error Resume Next
NSUnicastMgr.Connect "LocalHost"
If Err.Number = 0 Then
MsgBox "Connected"
Else
MsgBox "Not Connected: " & Err.Description
End If
© 1996-1998 Microsoft Corporation. All rights reserved.