Gets the FTP server port, stored in the FTP connection identified by iConnectionID.
GetFTPPort(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 connection. If the received 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 GetFTPSecurityMode method can be used to get the type of the connection.
NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.