Internet Direct (Indy) Version 9.0.1 Beta
TIdFTP.Connect
Opens a connection to the FTP server.

procedure Connect(AAutoLogin: boolean);
Parameters
AAutoLogin: boolean = True
Login the user when connected. Default value is True.

Description
Connect is a procedure that opens the connection to an FTP server identified in the Host property. Connect relies on the inherited Connect method to open the socket handle. Connect can raise an Exception when the server connection cannot be established.

When AutoLogin is True, the Connect method will send the authentication information in the User and Password properties to the FTP server. This action also triggers the FTP SYST command to identify the host FTP server, and stores the return value in SystemDesc.