Back to product page

Passive property


Determines if file transfer is passive.

Type

Boolean

Syntax

  • C#
  • VB.NET
Boolean Passive {get; set; };

Property Passive As Boolean

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 for the connection (such as for 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.NET.

Before transferring files, wodFtpDLX.NET will internally send all commands needed 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