libssh2_scp_recv2.3 (932B)
1.TH libssh2_scp_recv2 3 "29 Jun 2015" "libssh2 1.6.1" "libssh2" 2.SH NAME 3libssh2_scp_recv2 - request a remote file via SCP 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8LIBSSH2_CHANNEL * 9libssh2_scp_recv2(LIBSSH2_SESSION *session, const char *path, struct_stat *sb); 10.fi 11.SH DESCRIPTION 12\fIsession\fP - Session instance as returned by 13.BR libssh2_session_init_ex(3) 14 15\fIpath\fP - Full path and filename of file to transfer. That is the remote 16file name. 17 18\fIsb\fP - Populated with remote file's size, mode, mtime, and atime 19 20Request a file from the remote host via SCP. 21.SH RETURN VALUE 22Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors. 23.SH ERRORS 24\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed. 25 26\fILIBSSH2_ERROR_SCP_PROTOCOL\fP - 27 28\fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would 29block. 30.SH SEE ALSO 31.BR libssh2_session_init_ex(3) 32.BR libssh2_channel_open_ex(3)