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

NAME

6       libssh2_scp_send64 - Send a file via SCP
7

SYNOPSIS

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

DESCRIPTION

16       session - Session instance as returned by libssh2_session_init_ex(3)
17
18       path  -  Full  path  and  filename  of file to transfer to. That is the
19       remote file name.
20
21       mode - File access mode to create file with
22
23       size - Size of file being transmitted (Must be known  ahead  of  time).
24       Note that this needs to be passed on as variable type libssh2_uint64_t.
25       This type is 64 bit on modern operating systems and compilers.
26
27       mtime - mtime to assign to file being created
28
29       atime - atime to assign to file being created (Set this  and  mtime  to
30       zero to instruct remote host to use current time).
31
32       Send a file to the remote host via SCP.
33

RETURN VALUE

35       Pointer  to  a  newly  allocated  LIBSSH2_CHANNEL  instance, or NULL on
36       errors.
37
38

ERRORS

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

AVAILABILITY

50       This  function  was  added in libssh2 1.2.6 and is meant to replace the
51       former libssh2_scp_send_ex(3) function.
52

SEE ALSO

54       libssh2_channel_open_ex(3)
55
56
57
58libssh2 1.2.6                     17 Apr 2010            libssh2_scp_send64(3)
Impressum