meta data for this page
  •  

ibec_ftp_Connect

Description

ibec_ftp_Connect establishes connection to the FTP server.

Syntax

 function ibec_ftp_Connect(FTPSession : variant) : boolean;

ibec_ftp_Connect establishes a connection to the FTP server with options defined by the ibec_ftp_OpenSession function and returns TRUE in case of success. Otherwise it returns FALSE.

Example

FTPSession = ibec_ftp_OpenSession('HostName=myftpserver.com; UserName=me; Password=mysecret');
   try 
     if (ibec_ftp_Connect(FTPSession)) then
     begin
       ...
     end;
   finally
     ibec_ftp_CloseSession(FTPSession); 
   end;