libssh2_scp_send_ex.3 (1500B)
1.TH libssh2_scp_send_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_scp_send_ex - Send a file via SCP 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8LIBSSH2_CHANNEL * 9libssh2_scp_send_ex(LIBSSH2_SESSION *session, const char *path, int mode, 10 size_t size, long mtime, long atime); 11.fi 12.SH DESCRIPTION 13This function has been deemed deprecated since libssh2 1.2.6. See 14\fIlibssh2_scp_send64(3)\fP. 15 16\fIsession\fP - Session instance as returned by 17.BR libssh2_session_init_ex(3) 18 19\fIpath\fP - Full path and filename of file to transfer to. That is the remote 20file name. 21 22\fImode\fP - File access mode to create file with 23 24\fIsize\fP - Size of file being transmitted (Must be known 25ahead of time precisely) 26 27\fImtime\fP - mtime to assign to file being created 28 29\fIatime\fP - atime to assign to file being created (Set this and 30mtime to zero to instruct remote host to use current time). 31 32Send a file to the remote host via SCP. 33.SH RETURN VALUE 34Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors. 35 36.SH ERRORS 37\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed. 38 39\fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket. 40 41\fILIBSSH2_ERROR_SCP_PROTOCOL\fP - 42 43\fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would 44block. 45.SH AVAILABILITY 46This function was marked deprecated in libssh2 1.2.6 as 47 \fIlibssh2_scp_send64(3)\fP has been introduced to replace this function. 48.SH SEE ALSO 49.BR libssh2_channel_open_ex(3)