Maximum number of connections to the server.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public int MaxConnections { get; set; }
Visual Basic
Public Property MaxConnections As Integer
	Get
	Set
Visual C++
public:
property int MaxConnections {
	int get ();
	void set (int value);
}

Remarks

When concurrent transfers are EnabledExFTPConnection (and SecureFTPConnection) will maintain a pool of up to MaxConnections-1 'slave' connections in addition to its own 'main' connection. Many servers limit the number of connections a single client may make to the server, so the number of active connections may be less than MaxConnections.

Interactive applications, such as classic FTP client apps, can benefit from reserving one connection for user-actions, such as fetching directory listings. Thus when PoolMode is set to [!:PoolMode.ReserveMainConnection] the main connection will not usually be used for transfers. This is not an issue in non-interactive applications in which case the PoolMode may be set to [!:PoolMode.UseMainConnection]. The default value of PoolMode is [!:PoolMode.Automatic] where the main connection will used if ActiveForm is not null.

See Also