Gets or sets a value which specifies the way data transfers are made.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Property Passive As Boolean
	Get
	Set
C#
public bool Passive { get; set; }

Field Value

The file transfer type. Default is true (passive).

Remarks

Passive mode - data transfer connections are made by the client, which connects to the server.

Active mode - data transfer connections are made by the server, which connects to the client.

Firewalls and NATs often make it impossible to use active transfers.

When the transport layer doesn't support incoming connections, this property is ignored and all transfers are passive (for example when using HTTP CONNECT proxy).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also