GetFTPProxyPort

 

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

 

GetFTPProxyPort(pDevMode As Long, iConnectionID As Integer) As Integer

 

Input value pDevMode:

Handle to the BlackIceDEVMODE.

 

Input value iConnectionID:

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

 

Return value:

The port number used for the proxy connection. If the received 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.

 

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