1libssh2_scp_recv(3)                 libssh2                libssh2_scp_recv(3)
2
3
4

NAME

6       libssh2_scp_recv - request a remote file via SCP
7

SYNOPSIS

9       #include <libssh2.h>
10
11       LIBSSH2_CHANNEL *
12       libssh2_scp_recv(LIBSSH2_SESSION *session, const char *path, struct stat *sb);
13

DESCRIPTION

15       This function is DEPRECATED. Use libssh2_scp_recv2(3) instead!
16
17       session - Session instance as returned by libssh2_session_init_ex(3)
18
19       path  -  Full path and filename of file to transfer. That is the remote
20       file name.
21
22       sb - Populated with remote file's size, mode, mtime, and atime
23
24       Request a file from the remote host via SCP.
25

RETURN VALUE

27       Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL  on  er‐
28       rors.
29

ERRORS

31       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
32
33       LIBSSH2_ERROR_SCP_PROTOCOL -
34
35       LIBSSH2_ERROR_EAGAIN  -  Marked for non-blocking I/O but the call would
36       block.
37

SEE ALSO

39       libssh2_session_init_ex(3) libssh2_channel_open_ex(3)
40
41
42
43libssh2 0.15                      1 Jun 2007               libssh2_scp_recv(3)
Impressum