wodSFTP API library - RemoteWrite Method
      
 

Description
Writes to remote file.

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

Syntax

long Sftp_RemoteWrite(void *Sftp, __int64 RemotePos, char *Buffer, int Length);

The RemoteWrite function syntax has these parts:

Part Description
void *Sftp Handle of the created Sftp instance.
__int64 RemotePos Position in the remote file where write occurs.
char *Buffer Holds buffer with data to write.
int Length Total number of bytes in the buffer.

Remarks

The RemoteWrite function write Buffer to specific position in remote file, opened with RemoteOpen function. When data is fully written, Done callback will be called where you can write more data, close the file etc.. During the transfer, Progress callback WILL NOT be called.