Back to product page

Disconnect method


Disconnects from the remote server.

Type

None

Syntax

  • Basic
object.Disconnect [WaitLogoff]
The Disconnect(object,WaitLogoff) syntax has these parts:
objectAn expression evaluating to an object of type wodSSH.
WaitLogoffOptional. A Variant value. When set to True, wodSSH will send QUIT (and wait for its answer) before it closes the connection.

Remarks

The Disconnect method will close that socket between wodSSH and the remote server, thus breaking the connection. If the WaitLogoff argument isn't specified, or is set to False, the server will not be informed about disconnection. If WaitLogoff is set, wodSSH will first send information about the connection closure to the server (QUIT command).

After calling Disconnect, you can set new parameters and issue the Connect method again.

Platforms

Windows