FTP_GetPassive
version 6.5.3 (Modified)
FTP_GetPassive (ftp_ID; passiveMode) Integer
Parameter | Type | Description | |
ftp_ID | Longint | Reference to a FTP login | |
passiveMode | Integer | Current data stream transfer mode | |
0=Active mode, 1=Passive mode |
Function result Integer Error Code
Description
The FTP_GetPassive command returns the current data stream transfer mode.
For more details about FTP transfer modes, refer to the FTP_SetPassive command description.
ftp_ID is the long integer reference to the FTP session established with FTP_Login.
passiveMode returns the current data stream transfer mode:
• if 0 is returned, the FTP Server is currently asked to work in Active mode.
• if 1 is returned, the FTP Server is currently asked to work in Passive mode (default value).
See Also