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