Back to product page

Extensions function


Holds list of extensions supported by the server.

Type

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

Syntax

  • C
long Sftp_GetExtensions(void *Sftp, char *Buffer, int *Bufsize);
The Extensions(void *Sftp,char *Buffer,int *Bufsize) syntax has these parts:
void *SftpHandle of the created Sftp instance.
char *BufferBuffer that will hold the returned string. Holds the local computer name.
int *BufsizeSize of the buffer.

Remarks

Here you can find list of extensions supported by remote side, if any. This property is filled before Connected callback is called, so you can see what extensions are supported at the beginning of your connection. Each extension will be in its own line. Each line will contact extension name, one space character, and then version of the extension. Typically, first line will always be 'sftp xyz' where 'xyz' will be version of SFTP protocol supported by the server. You can use ExtendedCmd function to execute actual extension.

Platforms

Windows