1 .\" $Id: libssh2_sftp_write.3,v 1.1 2007/06/14 16:46:14 jehousley Exp $
3 .TH libssh2_sftp_rename_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
5 libssh2_sftp_rename_ex - rename a file
8 #include <libssh2_sftp.h>
11 libssh2_sftp_write(LIBSSH2_SFTP_HANDLE *handle, const char *buffer, size_t count);
14 \fIhandle\fP - SFTP File Handle as returned by
15 .BR libssh2_sftp_open(3)
17 \fIbuffer\fP - Pre-initialized data buffer to write to the LIBSSH2_SFTP_HANDLE.
19 \fIcount\fP - Number of bytes from buffer to write. Note that it may not
20 be possible to write all bytes as requested.
22 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.
25 Actual number of bytes written or negative on failure. It returns
26 LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
27 LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
30 \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
32 \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
34 \fILIBSSH2_ERROR_SOCKET_TIMEOUT\fP -
36 \fILIBSSH2_ERROR_SFTP_PROTOCOL\fP - An invalid SFTP protocol response was
37 received on the socket, or an SFTP operation caused an errorcode to
38 be returned by the server.
41 .BR libssh2_sftp_open(3)