1libssh2_session_startup(3) libssh2 manual libssh2_session_startup(3)
2
3
4
6 libssh2_session_startup - begin transport layer
7
9 #include <libssh2.h>
10
11 int libssh2_session_startup(LIBSSH2_SESSION *session, int socket);
12
14 Starting in libssh2 version 1.2.8 this function is considered depreā
15 cated. Use libssh2_session_handshake(3) instead.
16
17 session - Session instance as returned by libssh2_session_init_ex(3)
18
19 socket - Connected socket descriptor. Typically a TCP connection though
20 the protocol allows for any reliable transport and the library will
21 attempt to use any berkeley socket.
22
23 Begin transport layer protocol negotiation with the connected host.
24
26 Returns 0 on success, negative on failure.
27
29 LIBSSH2_ERROR_SOCKET_NONE - The socket is invalid.
30
31 LIBSSH2_ERROR_BANNER_SEND - Unable to send banner to remote host.
32
33 LIBSSH2_ERROR_KEX_FAILURE - >Encryption key exchange with the remote
34 host failed.
35
36 LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
37
38 LIBSSH2_ERROR_SOCKET_DISCONNECT - The socket was disconnected.
39
40 LIBSSH2_ERROR_PROTO - An invalid SSH protocol response was received on
41 the socket.
42
43 LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would
44 block.
45
46
48 libssh2_session_free(3) libssh2_session_init_ex(3)
49
50
51
52libssh2 0.15 1 Jun 2007 libssh2_session_startup(3)