Top  Previous  Next

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


Visual Basic Syntax


[Boolean =] Session.WaitForDisconnect([TimeOut] As Integer)


Delphi Syntax


[WordBool :=] Session.WaitForDisconnect([TimeOut]: Integer);        





The Timeout parameter is optional. This method returns True if the wait was successful and False if the Timeout period has expired. The TimeOut parameter is measured in milliseconds.                

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