Closes an open connection from a previous call to WebFtpConnect to a FTP server.
WebAPI.bdh
WebFtpShutdown( inout hFtp : number, in bGraceful : boolean optional ) : boolean;
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. |
// Connect to the ftp server dcltrans transaction TMyTransaction var hFtp: number; begin WebFtpConnect(hFtp, "standardhost", WEB_PORT_FTP, "", ""); WebFtpShutdown(hFtp); end TMyTransaction;
WebMulti01.bdf
Ftp.sep