Logout

Top  Previous  Next

RushApp.FTP.Logout

 

Declare

procedure Logout(NameList: string; Flag: Integer);

 

Description

Disconnect from one or more FTP Servers, If Param ANameList is empty string, all idle FTP connections will be disconnected.

 

Parameters

NameList

Specifies which FTP to disconnect, you can use a splitter to connect multiple FTP servers, a empty string means disconnect from all active/idle FTP connections(non-transfering)

Flag

if you don't use Flag, use zero instead of it

 

RS_ASYNC

when use this flag, FTPRush will do a disconnect action after command executed.

 

Examples

//logout from all idle FTP connections

RushApp.FTP.Logout('', 0);

 

//logout from connections which named 'FTP1'

RushApp.FTP.Logout('FTP1', 0);

 

//logout from connections which named 'FTP1' or 'FTP2'

RushApp.FTP.Logout('FTP1;FTP2', 0);

 

//send command 'NOOP' to 'FTP1', after 'NOOP' be executed, then disconnect from 'FTP1'

RushApp.FTP.Raw('FTP1', 'NOOP',0);

RushApp.FTP.Logout('FTP1',RS_ASYNC);