Libssh2 scp recv
From Libssh2
LIBSSH2_CHANNEL *libssh2_scp_recv(LIBSSH2_SESSION *session, const char *path, struct stat *sb);
[edit]
About
Request a file from the remote host via SCP. This function acts as a wrapper calling libssh2_channel_open_session(), libssh2_channel_exec(), and negotiating rcp protocol handshakes.
[edit]
Parameters
- session
- Session instance as returned by libssh2_session_init().
- path
- Full path and filename of file to transfer
- sb
- Populated with remote file's size, mode, mtime, and atime
[edit]
Returns
- On Success
- Newly allocated Channel instance.
- On Failure
- NULL
