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.
 
 
 
 

40 lines
1.3 KiB

  1. .TH libssh2_sftp_init 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_sftp_init - open SFTP channel for the given SSH session.
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. #include <libssh2_sftp.h>
  7. LIBSSH2_SFTP *
  8. libssh2_sftp_init(LIBSSH2_SESSION *session);
  9. .SH DESCRIPTION
  10. \fIsession\fP - Session instance as returned by
  11. .BR libssh2_session_init_ex(3)
  12. Open a channel and initialize the SFTP subsystem. Although the SFTP subsystem
  13. operates over the same type of channel as those exported by the Channel API,
  14. the protocol itself implements its own unique binary packet protocol which
  15. must be managed with the libssh2_sftp_*() family of functions. When an SFTP
  16. session is complete, it must be destroyed using the
  17. .BR libssh2_sftp_shutdown(3)
  18. function.
  19. .SH RETURN VALUE
  20. A pointer to the newly allocated SFTP instance or NULL on failure.
  21. .SH ERRORS
  22. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  23. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  24. \fILIBSSH2_ERROR_SOCKET_TIMEOUT\fP -
  25. \fILIBSSH2_ERROR_SFTP_PROTOCOL\fP - An invalid SFTP protocol response was
  26. received on the socket, or an SFTP operation caused an errorcode to be
  27. returned by the server.
  28. \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would
  29. block.
  30. .SH SEE ALSO
  31. .BR libssh2_sftp_shutdown(3)
  32. .BR libssh2_sftp_open_ex(3)