SetFTPProxyPort

 

Sets the Proxy Server Port, stored in the FTP connection identified by iConnectionID. The proxy server can be enabled or disabled using the SetFTPProxyType method.

 

SetFTPProxyPort (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 proxy server. The default ports are the following:

 

Socks: 1080

HTTP Connect: 8080

 

The SetFTPProxyType function can be used to set the type of the proxy server.

 

Return value:

True on success, otherwise False.

 

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