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