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.
 
 
 
 

49 lines
1.5 KiB

  1. .TH libssh2_scp_send_ex 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_scp_send_ex - Send a file via SCP
  4. .SH SYNOPSIS
  5. .nf
  6. #include <libssh2.h>
  7. LIBSSH2_CHANNEL *
  8. libssh2_scp_send_ex(LIBSSH2_SESSION *session, const char *path, int mode,
  9. size_t size, long mtime, long atime);
  10. .SH DESCRIPTION
  11. This function has been deemed deprecated since libssh2 1.2.6. See
  12. \fIlibssh2_scp_send64(3)\fP.
  13. \fIsession\fP - Session instance as returned by
  14. .BR libssh2_session_init_ex(3)
  15. \fIpath\fP - Full path and filename of file to transfer to. That is the remote
  16. file name.
  17. \fImode\fP - File access mode to create file with
  18. \fIsize\fP - Size of file being transmitted (Must be known
  19. ahead of time precisely)
  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 marked deprecated in libssh2 1.2.6 as
  34. \fIlibssh2_scp_send64(3)\fP has been introduced to replace this function.
  35. .SH SEE ALSO
  36. .BR libssh2_channel_open_ex(3)