WaitForConnect Method

Top  Previous  Next

This method waits until the telnet connection is successfully opened, or the timeout period expires.

 

VB.NET Syntax

 

[Boolean] = tnxxxx.WaitForConnect ([TimeOut As Integer])

 

C# Syntax

 

[bool] = tnxxxx.WaitForConnect ([int TimeOut]);

 

The TimeOut parameter is measured in milliseconds.

 

 

Remarks

 

The Timeout parameter is optional, assuming the WaitTimeout property value by default. This method returns True if the wait was successful and False if the timeout period has expired.

If you pass a timeout value in the Timeout parameter of this method, the value of the property WaitTimeout will not have any effect.

 

See also WaitTimeout property and Wait method.