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.
 
 
 
 

33 lines
935 B

  1. .TH libssh2_scp_recv2 3 "29 Jun 2015" "libssh2 1.6.1" "libssh2 manual"
  2. .SH NAME
  3. libssh2_scp_recv2 - request a remote file via SCP
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. LIBSSH2_CHANNEL *
  7. libssh2_scp_recv2(LIBSSH2_SESSION *session, const char *path, struct_stat *sb);
  8. .SH DESCRIPTION
  9. \fIsession\fP - Session instance as returned by
  10. .BR libssh2_session_init_ex(3)
  11. \fIpath\fP - Full path and filename of file to transfer. That is the remote
  12. file name.
  13. \fIsb\fP - Populated with remote file's size, mode, mtime, and atime
  14. Request a file from the remote host via SCP.
  15. .SH RETURN VALUE
  16. Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors.
  17. .SH ERRORS
  18. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  19. \fILIBSSH2_ERROR_SCP_PROTOCOL\fP -
  20. \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would
  21. block.
  22. .SH SEE ALSO
  23. .BR libssh2_session_init_ex(3)
  24. .BR libssh2_channel_open_ex(3)