Back to product page

Disconnect method


Disconnects from 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 wodFtpDLX.
WaitLogoffOptional. A Variant value. When set to True, wodFtpDLX will send 'BYE' command before disconnecting from the server.

Remarks

Disconnect method will close socket between wodFtpDLX 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, wodFtpDLX will first send information about connection closure to server.

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

Platforms

Windows