Back to product page

Compression function


Determines the level of compression used.

Type

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

Syntax

  • C
long Sftp_GetCompression(void *Sftp, short *pVal);
long Sftp_SetCompression(void *Sftp, short newVal);
The Compression(void *Sftp,short *pVal, newVal) syntax has these parts:
void *SftpHandle of the created Sftp instance.
short *pVal, newValAn Integer value. Determines the level of compression.

Remarks

Before connecting to an SSH server, you can decide if you want to use wodSFTP's internal compression. If so, you should set the Compression property to any value between 1 and 9 (1 for minimum compression, 9 for maximum compression). If you don't want compression to be used, set this parameter to 0.

Typically, SFTP clients use compression level 6 for optimum performance.

Platforms

Windows