SetFTPPort

 

Sets the FTP server port, stored in the FTP connection identified by iConnectionID.

 

SetFTPPort (pDevMode As Long, iConnectionID As Integer, iPort As Integer) As Boolean

 

Input value pDevMode:

Handle to the BlackIceDEVMODE.

 

Input value iConnectionID:

The ID of the selected FTP connection. The ID can be attained by using the GetFTPConnectionByIndex, GetFTPConnectionByName, GetSelectedFTPConnection or the AddFTPConnection methods.

 

Input value iPort:

The new Port number for the connection. If this number is 0, that means that the default port number is used, based on the type of the connection. The default ports are the following:

 

Unsecured FTP: 21

FTPS: 990

SFTP: 22

 

The SetFTPSecurityMode method can be used to set the type of the connection.

 

Return value:

True on success, otherwise False.

 

NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.