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.
 
 
 
 

36 lines
1006 B

  1. .TH libssh2_scp_recv 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_scp_recv - request a remote file via SCP
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. LIBSSH2_CHANNEL *
  7. libssh2_scp_recv(LIBSSH2_SESSION *session, const char *path, struct stat *sb);
  8. .SH DESCRIPTION
  9. This function is \fBDEPRECATED\fP. Use \fIlibssh2_scp_recv2(3)\fP
  10. instead!
  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. That is the remote
  14. file name.
  15. \fIsb\fP - Populated with remote file's size, mode, mtime, and atime
  16. Request a file from the remote host via SCP.
  17. .SH RETURN VALUE
  18. Pointer to a newly allocated LIBSSH2_CHANNEL instance, or NULL on errors.
  19. .SH ERRORS
  20. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  21. \fILIBSSH2_ERROR_SCP_PROTOCOL\fP -
  22. \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would
  23. block.
  24. .SH SEE ALSO
  25. .BR libssh2_session_init_ex(3)
  26. .BR libssh2_channel_open_ex(3)