Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.FtpDLX
- Properties
- Authentication
- Blocking
- BufferSize
- Certificate
- Compression
- DirFormat
- DirItems
- Encryption
- Hostname
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalPath
- Login
- MaxTransferRate
- Passive
- Password
- Port
- PreserveDates
- PrivateKey
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- PublicKeyOpenSSH
- PublicKeySSH
- RemotePath
- Resume
- SecureMethod
- SmartGet
- SmartPut
- State
- StrictHost
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Methods
- Events
- Properties
- WeOnlyDo.Client.DirItemsCollection
- WeOnlyDo.Client.DirItem
- How to get support?
Passive property
Determines if file transfer is passive.
Type
BooleanSyntax
- 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.