1libssh2_scp_recv(3)             libssh2 manual             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 * libssh2_scp_recv(LIBSSH2_SESSION *session, const char
12       *path, struct stat *sb);
13
14

DESCRIPTION

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

RETURN VALUE

28       Pointer  to  a  newly  allocated  LIBSSH2_CHANNEL  instance, or NULL on
29       errors.
30

ERRORS

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

SEE ALSO

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