Topic Path: Symbol Reference > Classes > TIdFTP Class > TIdFTP Methods > Quit Method
ContentsIndexHome
PreviousUpNext
TIdFTP.Quit Method

Closes the FTP client connection.

procedure Quit;

Quit is a procedure used to close the connection to the FTP server when a file transfer operation is not in progress. Quit closes the control channel for the FTP client. 

Quit sends the FTP QUIT command when the connection to the remote FTP server is currently opened. If the client is not currently connected, the QUIT command is omitted. 

Quit calls the Disconnect method to close the control channel connection for the FTP client. 

An application should call Abort, when a file transfer is in progress, prior to calling the Quit method.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.