PassiveMode Property
Enables or disables passive transfer mode.
Syntax
ANSI (Cross Platform) int GetPassiveMode();
int SetPassiveMode(int bPassiveMode); Unicode (Windows) BOOL GetPassiveMode();
INT SetPassiveMode(BOOL bPassiveMode);
@property (nonatomic,readwrite,assign,getter=passiveMode,setter=setPassiveMode:) BOOL passiveMode; - (BOOL)passiveMode; - (void)setPassiveMode:(BOOL)newPassiveMode;
#define PID_FTPCLIENT_PASSIVEMODE 90 SECUREBLACKBOX_EXTERNAL void* SECUREBLACKBOX_CALL SecureBlackbox_FTPClient_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_FTPClient_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
TRUE
Remarks
The transfer mode (active or passive) regulates which party is responsible for opening a listening port for data connections. Where passive mode is used, the FTP server is responsible for listening for data connections. In active mode, the listening port is opened by the client.
In today's Internet of firewalls it is a de-facto standard to use the passive mode for FTP transfers.
Data Type
Boolean