wodSFTP API library - Port Property
      
 

Description

Determines the port on the remote server where wodSFTP will connect.


Return type

A Long value. If successful, 0 is returned, otherwise error as specified here


Syntax

long Sftp_GetPort(void *Sftp, long *pVal);
long Sftp_SetPort(void *Sftp, long newVal);

The Port Property syntax has these parts:

Part Description
void *Sftp Handle of the created Sftp instance.
long *pVal, newVal Specifies port on the server.

Remarks

This property determines which port on the remote server will be used for the connection. If the remote server uses a non-standard port value, you can change it to the appropriate value here.

This property value cannot be changed after the Connect method has been issued.