Passive Property

Controls whether to direct the server into passive mode. Recommended if behind a firewall.

Syntax

ANSI (Cross Platform)
int GetPassive();
int SetPassive(int bPassive); Unicode (Windows) BOOL GetPassive();
INT SetPassive(BOOL bPassive);
@property (nonatomic,readwrite,assign,getter=passive,setter=setPassive:) BOOL passive;
- (BOOL)passive;
- (void)setPassive:(BOOL)newPassive;
#define PID_FTP_PASSIVE 24

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_FTP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_FTP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

TRUE

Remarks

This property controls whether to direct the server into passive mode. Many firewalls will not allow the FTP server to open a connection from outside to the higher ports where the FTP client class expects them. If Passive is set to TRUE, the class will use the PASV instead of the PORT command and will thus direct the server into passive mode: connections are initiated only by the client.

Data Type

Boolean

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]