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.
 
 
 
 

43 lines
1.4 KiB

  1. .TH libssh2_session_startup 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_session_startup - begin transport layer
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_session_startup(LIBSSH2_SESSION *session, int socket);
  8. .SH DESCRIPTION
  9. Starting in libssh2 version 1.2.8 this function is considered deprecated. Use
  10. \fIlibssh2_session_handshake(3)\fP instead.
  11. \fIsession\fP - Session instance as returned by
  12. .BR libssh2_session_init_ex(3)
  13. \fIsocket\fP - Connected socket descriptor. Typically a TCP connection
  14. though the protocol allows for any reliable transport and the library will
  15. attempt to use any berkeley socket.
  16. Begin transport layer protocol negotiation with the connected host.
  17. .SH RETURN VALUE
  18. Returns 0 on success, negative on failure.
  19. .SH ERRORS
  20. \fILIBSSH2_ERROR_SOCKET_NONE\fP - The socket is invalid.
  21. \fILIBSSH2_ERROR_BANNER_SEND\fP - Unable to send banner to remote host.
  22. \fILIBSSH2_ERROR_KEX_FAILURE\fP - >Encryption key exchange with the remote
  23. host failed.
  24. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  25. \fILIBSSH2_ERROR_SOCKET_DISCONNECT\fP - The socket was disconnected.
  26. \fILIBSSH2_ERROR_PROTO\fP - An invalid SSH protocol response was received on
  27. the socket.
  28. \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would block.
  29. .SH SEE ALSO
  30. .BR libssh2_session_free(3)
  31. .BR libssh2_session_init_ex(3)