Back to product page

RemoteWrite function


Writes to remote file.

Type

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

Syntax

  • C
long Sftp_RemoteWrite(void *Sftp, __int64 RemotePos, char *Buffer, int Length);
The RemoteWrite(void *Sftp,__int64 RemotePos,char *Buffer,int Length) syntax has these parts:
void *SftpHandle of the created Sftp instance.
__int64 RemotePosPosition in the remote file where write occurs.
char *BufferHolds buffer with data to write.
int LengthTotal 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.

Platforms

Windows