Back to product page

Port function


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

Type

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

Syntax

  • C
long Sftp_GetPort(void *Sftp, long *pVal);
long Sftp_SetPort(void *Sftp, long newVal);
The Port(void *Sftp,long *pVal, newVal) syntax has these parts:
void *SftpHandle of the created Sftp instance.
long *pVal, newValSpecifies 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.

Platforms

Windows