Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_session_startup(3) [debian man page]

libssh2_session_startup(3)					  libssh2 manual					libssh2_session_startup(3)

NAME
libssh2_session_startup - begin transport layer SYNOPSIS
#include <libssh2.h> int libssh2_session_startup(LIBSSH2_SESSION *session, int socket); DESCRIPTION
Starting in libssh2 version 1.2.8 this function is considered deprecated. Use libssh2_session_handshake(3) instead. session - Session instance as returned by libssh2_session_init_ex(3) socket - 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. Begin transport layer protocol negotiation with the connected host. RETURN VALUE
Returns 0 on success, negative on failure. ERRORS
LIBSSH2_ERROR_SOCKET_NONE - The socket is invalid. LIBSSH2_ERROR_BANNER_SEND - Unable to send banner to remote host. LIBSSH2_ERROR_KEX_FAILURE - >Encryption key exchange with the remote host failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_SOCKET_DISCONNECT - The socket was disconnected. LIBSSH2_ERROR_PROTO - An invalid SSH protocol response was received on the socket. LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would block. SEE ALSO
libssh2_session_free(3) libssh2_session_init_ex(3) libssh2 0.15 1 Jun 2007 libssh2_session_startup(3)

Check Out this Related Man Page

libssh2_session_startup(3)					  libssh2 manual					libssh2_session_startup(3)

NAME
libssh2_session_startup - begin transport layer SYNOPSIS
#include <libssh2.h> int libssh2_session_startup(LIBSSH2_SESSION *session, int socket); DESCRIPTION
Starting in libssh2 version 1.2.8 this function is considered deprecated. Use libssh2_session_handshake(3) instead. session - Session instance as returned by libssh2_session_init_ex(3) socket - 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. Begin transport layer protocol negotiation with the connected host. RETURN VALUE
Returns 0 on success, negative on failure. ERRORS
LIBSSH2_ERROR_SOCKET_NONE - The socket is invalid. LIBSSH2_ERROR_BANNER_SEND - Unable to send banner to remote host. LIBSSH2_ERROR_KEX_FAILURE - >Encryption key exchange with the remote host failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_SOCKET_DISCONNECT - The socket was disconnected. LIBSSH2_ERROR_PROTO - An invalid SSH protocol response was received on the socket. LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would block. SEE ALSO
libssh2_session_free(3) libssh2_session_init_ex(3) libssh2 0.15 1 Jun 2007 libssh2_session_startup(3)
Man Page

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

send function in socket

Hi All, I encountered a stange problem while doing a perl script to use socket. i need to transfer a file from client to sever. but error came as argument missing in send function.........Plz tell me the wt r the arguments in send and recv functions....... (0 Replies)
Discussion started by: trupti_rinku
0 Replies

2. Programming

implementing AVL tree

how is an AVL tree implemented and insertions are made to itwenever a new socket is created and deletions are made when the socket is closed or connection is disconnected.how to read and print the names of all the current sockets. Please send the source code. (1 Reply)
Discussion started by: arjunjag
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Unable to

Unable to Activate ErnieS email id removed It just keeps sending me round in circles? And in true Unix fashion as soon as I post this it does.... Please ignore Thanks (1 Reply)
Discussion started by: ErnieS
1 Replies

4. UNIX for Advanced & Expert Users

connect problem for sctp socket (ipv6 socket) - Runtime fail Invalid Arguments

Hi, I was porting ipv4 application to ipv6; i was done with TCP transports. Now i am facing problem with SCTp transport at runtime. To test SCTP transport I am using following server and client socket programs. Server program runs fine, but client program fails giving Invalid Arguments for... (0 Replies)
Discussion started by: chandrutiptur
0 Replies

5. Infrastructure Monitoring

Socket's session

Hi there, I need a socket (server) in perl that when session created by a client request, take a string and after some proccesing on it, send a string(response) and close the session. but socket wait for future requests. It's possible to lead me?! :(? or write a psudo code? Thanks in advance. (1 Reply)
Discussion started by: Zaxon
1 Replies

6. Programming

Socket programming in C

Hi, I wanted to write a socket program in C, where I always want my socket connected to the server. i.e i shouldn't get disconnected once i get the response back from the server. I want to work in the connected mode, instead of disconnect and connect. Can somebody please kindly provide me a... (3 Replies)
Discussion started by: sudharma
3 Replies

7. Programming

open a socket

hi all, i meet a problem when opening a socket, is that when the remote host not available or its port hanged ,my program still suspending untill i cancel the operation... but when the host is ok ,my program work ok. i handled in my code all these exceptions ,but my problem is when the host is... (6 Replies)
Discussion started by: Ahmed waheed
6 Replies

8. UNIX for Dummies Questions & Answers

Unable to send single and double quotes to command

Hi Unix experts, Believe me, this forum has been really great help and I searched for many things that were already answered before open new post that were just new versions of old one, but with this one, I just can't simply move any forward. This must be quite easy, but I cant find where I... (1 Reply)
Discussion started by: manolain
1 Replies

9. Red Hat

Unable to connect "Reliance Netconnect" on Redh Hat Linux 5

Hi Friends, Can someone help me with below issue , thanks. Subject : Unable to configure "Reliance NetConnect" on RHEL 5 Here some helpful information : # lsusb Bus 001 Device 001: ID 0000:0000 Bus 001 Device 002: ID 8087:0020 Bus 001 Device 003: ID 192f:0416 Bus 002 Device... (0 Replies)
Discussion started by: arunraj192
0 Replies

10. UNIX for Advanced & Expert Users

Issues with select system call

1. We are using client-server model communication using TCP/IP protocol 2. The TCP socket created with O_NON_BLOCK flag 3. When we make attempt to send large data to other process, the send is partially successful. It means we attempt to send 90K data, OS sent only 40K data successfully. ... (3 Replies)
Discussion started by: MasthanDudekula
3 Replies