1libssh2_scp_send_ex(3)          libssh2 manual          libssh2_scp_send_ex(3)
2
3
4

NAME

6       libssh2_scp_send_ex - Send a file via SCP
7

SYNOPSIS

9       #include <libssh2.h>
10
11       LIBSSH2_CHANNEL  *  libssh2_scp_send_ex(LIBSSH2_SESSION *session, const
12       char *path, int mode, size_t size, long mtime, long atime);
13

DESCRIPTION

15       session - Session instance as returned by libssh2_session_init_ex(3)
16
17       path - Full path and filename of file  to  transfer  to.  That  is  the
18       remote file name.
19
20       mode - File access mode to create file with
21
22       size - Size of file being transmitted (Must be known ahead of time pre‐
23       cisely)
24
25       mtime - mtime to assign to file being created
26
27       atime - atime to assign to file being created (Set this  and  mtime  to
28       zero to instruct remote host to use current time).
29
30       Send a file to the remote host via SCP.
31

RETURN VALUE

33       Pointer  to  a  newly  allocated  LIBSSH2_CHANNEL  instance, or NULL on
34       errors.
35
36

ERRORS

38       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
39
40       LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
41
42       LIBSSH2_ERROR_SCP_PROTOCOL -
43
44       LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the  call  would
45       block.
46
47

SEE ALSO

49       libssh2_channel_open_ex(3)
50
51
52
53libssh2 0.15                      1 Jun 2007            libssh2_scp_send_ex(3)
Impressum