Back to product page

Passive property


Determines if file transfer is passive.

Type

A Boolean value. Determines if data connection is opened in passive mode

Syntax

  • Basic
object.Passive[= value]
The Passive(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.
valueA Boolean value.

Remarks

FTP protocol requires secondary data connection to be opened when actual contents of files or directories needs to be transferred. For this purpose, either client or the server initiate new connection towards server/client, and once data connection is established, data flows over it leaving control connection available for any additional commands regarding the connection (such as aborting transfer).

Data connection can be opened in regular active mode, in which case PORT command is sent to the server, and server will initiate connection towards the client. Since this type has a problems with firewalls and proxies, widely used type is passive where client sends PASV command to the server, server opens and accepts connection on some port, and client initiates new connection towards the server. This is default behavior for wodFtpDLX.

Before transferring files, wodFtpDLX will internally send all commands needs to prepare file transfer - it will change directory, select transfer mode (Binary, AscII), select active or passive connection, and finally transfer files. You don't need to worry about this in your applications.

Platforms

Windows