WebFtpShutdown Function

Action

Closes an open connection from a previous call to WebFtpConnect to a FTP server.

Include file

WebAPI.bdh

Syntax

WebFtpShutdown( inout hFtp      : number, 
                in    bGraceful : boolean optional ) : boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hFtp Valid handle to an FTP session. This handle must have been returned from a previous call to WebFtpConnect.
bGraceful If this parameter is set to true a QUIT command is sent before the connection is closed (optional). If this parameter is omitted no QUIT command is sent.

Example

// Connect to the ftp server 
dcltrans 
  transaction TMyTransaction 
  var
    hFtp: number; 
  begin
    WebFtpConnect(hFtp, "standardhost", WEB_PORT_FTP, "", ""); 
    WebFtpShutdown(hFtp); 
  end TMyTransaction;

Sample scripts

WebMulti01.bdf

SilkEssential sample

Ftp.sep