Back to product page

Disconnect method


Disconnects from remote server.

Syntax

  • Basic
object.Disconnect ([WaitLogoff])
The Disconnect(object,WaitLogoff) syntax has these parts:
objectAn expression evaluating to an object of type wodTelnetDLX
WaitLogoffOptional. A Variant value. When set to True, wodTelnetDLX will send 'QUIT' command before it disconnects from the server.

Remarks

Disconnect method will close socket between wodTelnetDLX and remote server, thus breaking the connection. If WaitLogoff value isn't specified, or is set to False, server will not be informed about disconnection (connection is closed brutally). If WaitLogoff is set, wodTelnetDLX will first send information about connection closure to server.

Connect method again.

Platforms

Windows