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

Closes the FTP session for the client.

procedure DisconnectNotifyPeer; override;

DisconnectNotifyPeer is an overridden method that handles closing the FTP session for the client. 

When the IOHandler is still connected to the remote FTP server, DisconnectNotifyPeer sends the FTP QUIT command to indicate that the client will be closing the control channel for the FTP session. DisconnectNotifyPeer then waits for a brief period (10 milliseconds) for the IOHandler to become readable and to handle the response for the FTP QUIT command. 

Please note that the Quit method has been deprecated in Indy 10. 

Use Disconnect to simply close the control channel for the FTP session.

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