Description
-
Holds list of extensions supported by the server.
Return type
-
A Long value. If successful, 0 is returned, otherwise
error as specified here.
Syntax
-
long Sftp_GetExtensions(void *Sftp, char
*Buffer, int *Bufsize);
The Extensions function syntax has these parts:
| void
*Sftp |
Handle of the created Sftp
instance. |
| char
*Buffer |
Buffer that will hold the
returned string. Holds the local computer name. |
| int
*Bufsize |
Size 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.
|