geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
1.5 KiB

  1. .TH libssh2_scp_send64 3 "17 Apr 2010" "libssh2 1.2.6" "libssh2 manual"
  2. .SH NAME
  3. libssh2_scp_send64 - Send a file via SCP
  4. .SH SYNOPSIS
  5. .nf
  6. #include <libssh2.h>
  7. LIBSSH2_CHANNEL *
  8. libssh2_scp_send64(LIBSSH2_SESSION *session, const char *path, int mode,
  9. libssh2_uint64_t size, time_t mtime, time_t atime);
  10. .SH DESCRIPTION
  11. \fIsession\fP - Session instance as returned by
  12. .BR libssh2_session_init_ex(3)
  13. \fIpath\fP - Full path and filename of file to transfer to. That is the remote
  14. file name.
  15. \fImode\fP - File access mode to create file with
  16. \fIsize\fP - Size of file being transmitted (Must be known ahead of
  17. time). Note that this needs to be passed on as variable type
  18. libssh2_uint64_t. This type is 64 bit on modern operating systems and
  19. compilers.
  20. \fImtime\fP - mtime to assign to file being created
  21. \fIatime\fP - atime to assign to file being created (Set this and
  22. mtime to zero to instruct remote host to use current time).
  23. Send a file to the remote host via SCP.
  24. .SH RETURN VALUE
  25. Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors.
  26. .SH ERRORS
  27. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  28. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  29. \fILIBSSH2_ERROR_SCP_PROTOCOL\fP -
  30. \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would
  31. block.
  32. .SH AVAILABILITY
  33. This function was added in libssh2 1.2.6 and is meant to replace the former
  34. \fIlibssh2_scp_send_ex(3)\fP function.
  35. .SH SEE ALSO
  36. .BR libssh2_channel_open_ex(3)