Libssh2 sftp write
From Libssh2
size_t libssh2_sftp_write(LIBSSH2_SFTP_HANDLE *handle, const char *buffer, size_t count);
[edit]
About
Write a block of data to a LIBSSH2_SFTP_HANDLE. This method is modeled after the POSIX write() function and uses the same calling semantics.
[edit]
Parameters
- handle
- SFTP File Handle as returned by libssh2_sftp_open().
- buffer
- Pre-initialized data buffer to write to the LIBSSH2_SFTP_HANDLE.
- count
- Number of bytes from buffer to write. Note that it may not be possible to write all bytes as requested.
[edit]
Returns
- On Success
- Number of bytes actually written the the LIBSSH2_SFTP_HANDLE.
- On Failure
- -1
