Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_agent_init(3) [debian man page]

libssh2_agent_init(3)						  libssh2 manual					     libssh2_agent_init(3)

NAME
libssh2_agent_init - init an ssh-agent handle SYNOPSIS
#include <libssh2.h> LIBSSH2_AGENT *libssh2_agent_init(LIBSSH2_SESSION *session); DESCRIPTION
Init an ssh-agent handle. Returns the handle to an internal representation of an ssh-agent connection. After the successful initializa- tion, an application can call libssh2_agent_connect(3) to connect to a running ssh-agent. Call libssh2_agent_free(3) to free the handle again after you're doing using it. RETURN VALUE
Returns a handle pointer or NULL if something went wrong. The returned handle is used as input to all other ssh-agent related functions libssh2 provides. AVAILABILITY
Added in libssh2 1.2 SEE ALSO
libssh2_agent_connect(3) libssh2_agent_free(3) libssh2 1.2 23 Dec 2009 libssh2_agent_init(3)

Check Out this Related Man Page

libssh2_session_block_directions(3)				  libssh2 manual			       libssh2_session_block_directions(3)

NAME
libssh2_session_block_directions - get directions to wait for SYNOPSIS
#include <libssh2.h> int libssh2_session_block_directions(LIBSSH2_SESSION *session); DESCRIPTION
session - Session instance as returned by libssh2_session_init_ex(3) When any of libssh2 functions return LIBSSH2_ERROR_EAGAIN an application should wait for the socket to have data available for reading or writing. Depending on the return value of libssh2_session_block_directions(3) an application should wait for read, write or both. RETURN VALUE
Returns the set of directions as a binary mask. Can be a combination of: LIBSSH2_SESSION_BLOCK_INBOUND: Inbound direction blocked. LIBSSH2_SESSION_BLOCK_OUTBOUND: Outbound direction blocked. Application should wait for data to be available for socket prior to calling a libssh2 function again. If LIBSSH2_SESSION_BLOCK_INBOUND is set select should contain the session socket in readfds set. Correspondingly in case of LIBSSH2_SESSION_BLOCK_OUTBOUND writefds set should contain the socket. AVAILABILITY
Added in 1.0 libssh2 1.0 1 Oct 2008 libssh2_session_block_directions(3)
Man Page