FTPS API

Overview

These public interfaces are used in FTPS components. They are provided for implementing advanced functionality in your scripts. In order for you to use these interfaces in your project, you have to reference CozyRoc.SSISPlus.dll library.

IFtpsClientConnection

When you call FTPS Connection Manager AcquireConnection method, it returns object implementing IFtpsClientConnection interface. This is the interface used for interaction with FTPS Server.

Connect method

Connects to FTPS server. The result is IFtpClient object.

Close method

Closes the connection to a FTPS Server. Use always after you finish working with the server. You may also dispose the returned object from Connect method as alternative.

IsConnected method

Returns true if connected to the server.

ConnectionType property (int)

Specify connection type. This property has the options listed in the following table.

Value Description
0 Unsecured FTP connection.
1 Use Explicit SSL FTPS.
2 Use Implicit SSL FTPS.
3 Use Explicit TLS FTPS (1.3 SR-1).
4 Use Implicit TLS FTPS (1.3 SR-1).
ServerHost property (string)

Specify the name or IP address of the FTPS server.

ServerPort property (int)

Specify the port number on the FTPS server to use for the connection. The default value of this property is 21.

ServerUser property (string)

Specify user name to access the FTPS server.

ServerPassword property (string)

Specify user password to access the FTPS server.

ServerTimeout property (int)

Specify the number of seconds before timing out session connect. The default value of this property is 60.

ProxyType property (int)

Specify proxy type. This property has the options listed in the following table.

Value Description
0 Proxy not specified.
1 Use SOCKS4 proxy type.
2 Use SOCKS5 proxy type.
3 Use HTTP proxy type.
4 Use FTP w/ SITE proxy type. Available only for unsecured connection type.
5 Use FTP w/ OPEN proxy type. Available only for unsecured connection type.
6 Use FTP w/ USER proxy type. Available only for unsecured connection type (1.3 SR-1).
ProxyHost property (string)

Specify the name or IP address of the proxy server.

ProxyPort property (int)

Specify the port number on the proxy server to use for the connection. The default value of this property is 80.

ProxyUser property (string)

Specify user name to access the proxy server.

ProxyPassword property (string)

Specify password to access the proxy server.