2007-06-13 18:41:33 +02:00
|
|
|
.\" $Id: libssh2_session_startup.3,v 1.6 2007/06/13 16:41:33 jehousley Exp $
|
2006-12-21 15:09:12 +01:00
|
|
|
.\"
|
2007-06-13 18:41:33 +02:00
|
|
|
.TH libssh2_session_startup 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
|
2006-12-21 15:09:12 +01:00
|
|
|
.SH NAME
|
|
|
|
libssh2_session_startup - begin transport layer
|
|
|
|
.SH SYNOPSIS
|
|
|
|
#include <libssh2.h>
|
|
|
|
|
2007-06-13 16:07:12 +02:00
|
|
|
int
|
|
|
|
libssh2_session_startup(LIBSSH2_SESSION *session, int socket);
|
|
|
|
|
2006-12-21 15:09:12 +01:00
|
|
|
.SH DESCRIPTION
|
2007-06-13 16:07:12 +02:00
|
|
|
\fIsession\fP - Session instance as returned by
|
|
|
|
.BR libssh2_session_init(3)
|
|
|
|
|
|
|
|
\fIsocket\fP - Connected socket descriptor. Typically a TCP connection
|
|
|
|
though the protocol allows for any reliable transport and the library will
|
|
|
|
attempt to use any berkeley socket.
|
|
|
|
|
2006-12-21 15:09:12 +01:00
|
|
|
Begin transport layer protocol negotiation with the connected host.
|
|
|
|
.SH RETURN VALUE
|
2007-06-13 16:07:12 +02:00
|
|
|
Returns 0 on success, negative on failure.
|
2007-06-06 14:34:06 +02:00
|
|
|
.SH ERRORS
|
2007-06-13 16:07:12 +02:00
|
|
|
\fILIBSSH2_ERROR_SOCKET_NONE\fP - The socket is invalid.
|
|
|
|
|
|
|
|
\fILIBSSH2_ERROR_BANNER_SEND\fP - Unable to send banner to remote host.
|
|
|
|
|
|
|
|
\fILIBSSH2_ERROR_KEX_FAILURE\fP - >Encryption key exchange with the remote
|
|
|
|
host failed.
|
|
|
|
|
|
|
|
\fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
|
|
|
|
|
|
|
|
\fILIBSSH2_ERROR_SOCKET_DISCONNECT\fP - The socket was disconnected.
|
|
|
|
|
|
|
|
\fILIBSSH2_ERROR_PROTO\fP - An invalid SSH protocol response was received on
|
|
|
|
the socket.
|
|
|
|
|
|
|
|
\fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would block.
|
|
|
|
|
2007-06-13 14:51:10 +02:00
|
|
|
.SH SEE ALSO
|
2007-06-13 16:07:12 +02:00
|
|
|
.BR libssh2_session_free(3)
|
|
|
|
.BR libssh2_session_init(3)
|