Back to product page

ExtendedCmdReply callback


Called after wodSFTP receives reply on ExtendedCmd.

Syntax

  • C
void (*ExtendedCmdReply)(void *Sftp, char *Data, int Length);
The ExtendedCmdReply(void *Sftp,char *Data,int Length) syntax has these parts:
void *SftpHandle of the created Sftp instance.
char *DataPointer to (binary) data received from the server.
int LengthTotal number of bytes received in Data argument.

Remarks

The ExtendedCmdReply event can be called by wodSFTP as result of ExtendedCmd function call. Data argument will contain byte array of SSH structured data returned by remote side. If you're interested in the data, you should know type of extension and it's structure to correctly understand the data.

NOTE: this callback is called only if you have created instance of SftpEventsStruct structure, and set up its ExtendedCmdReply member to function implementing it.

Platforms

Windows