Back to product page

RemoteData callback


Called after wodSFTP has some data to be provided as result of RemoteRead command.

Syntax

  • C
void (*RemoteData)(void *Sftp, char *Data, int Length);
The RemoteData(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 RemoteData callback is called if you use RemoteRead function, and wodSFTP manages to read remote file. More than one RemoteData call can occur as result of only one RemoteRead function call.

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

Platforms

Windows