Xceed .NET Libraries Documentation
FxpPassiveTransfer Property (FtpClient)


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpClient Class : FxpPassiveTransfer Property
Gets or sets a Boolean value indicating if FXP file transfers use the passive method or not to initiate the data connection.
Syntax
'Declaration
 
<ObsoleteAttribute("Provide the passive FXP server as parameter of the FtpClient.FxpCopy() method instead")>

Public Property FxpPassiveTransfer As Boolean
'Usage
 
Dim instance As FtpClient

Dim value As Boolean

 

instance.FxpPassiveTransfer = value

 

value = instance.FxpPassiveTransfer
[Obsolete("Provide the passive FXP server as parameter of the FtpClient.FxpCopy() method instead")]

public bool FxpPassiveTransfer {get; set;}

Property Value

true if FXP file transfers use the passive method to initiate the data connection; false otherwise. By default, this property is true.
Remarks

The passive method to initiate a data connection implies the following: the client sends the PASV command to the server. This command is a request to the server that it open a port for a data connection. The server responds with an address and a port to connect to for the data transfer.

When the property is false, the active method is used to initiate a data connection: the client sends the PORT command to the server. The command includes a local port number on the client machine and is a request to the server that it connect to the client at the specified port for a data connection.

For FXP file transfers to work properly, one client should have the property to true, and the other to false.

For all non FXP file transfers, see the PassiveTransfer Property.

Example
Using the FXP Protocol
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FtpClient Class
FtpClient Members

Overview

Using the FXP Protocol