Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

libssh2_session_block_directions(3) [debian 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)

Check Out this Related Man Page

libssh2_banner_set(3)						  libssh2 manual					     libssh2_banner_set(3)

NAME
libssh2_banner_set - set the SSH prococol banner for the local client SYNOPSIS
#include <libssh2.h> int libssh2_banner_set(LIBSSH2_SESSION *session, const char *banner); DESCRIPTION
This function is DEPRECATED. Use libssh2_session_banner_set(3) instead! session - Session instance as returned by libssh2_session_init_ex(3) banner - A pointer to a user defined banner Set the banner that will be sent to the remote host when the SSH session is started with libssh2_session_handshake(3) This is optional; a banner corresponding to the protocol and libssh2 version will be sent by default. RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se. AVAILABILITY
Marked as deprecated since 1.4.0 ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. SEE ALSO
libssh2_session_handshake(3) libssh2 0.15 1 Jun 2007 libssh2_banner_set(3)
Man Page

6 More Discussions You Might Find Interesting

1. Programming

Function in a blocked state.

Hi, How do you write a function which has to stay blocked in a wait state till an event occurs? The event could be the arrival of a message/updation of a database etc .. Regards, VJ (2 Replies)
Discussion started by: vjsony
2 Replies

2. Programming

reading reading data from webpage

hi iam reading data from web page using request socket and curl socket. now my problem is some the web page containg data as a image so how can i read the data from a image. thank,inadvance. sree (3 Replies)
Discussion started by: phani_sree
3 Replies

3. Solaris

ld: fatal: relocations remain against allocatable but non-writable sections

Hello everybody. I've got a problem installing libssh2-0.18 Configure is done without any errors : ./configure --prefix=/home/tdallagn/modap/libssh2 --with-openssl=/home/tdallagn/modap/openssl But the "make" command fails : ld: fatal: relocations remain against allocatable but... (0 Replies)
Discussion started by: tdallagn
0 Replies

4. 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

5. Shell Programming and Scripting

Need help to check the copy % from following output

I have a scenario where I need to wait for the copy to be 100% in the following output There can be multiple devices in the copy session so I need to wait till everything becomes 100%, also we can look for the protected tracks t0 become 0 opey # symclone -sid 822 -v -f... (2 Replies)
Discussion started by: rajsan
2 Replies

6. Shell Programming and Scripting

How to track Inbound Outbound connections to PID?

I have a Application Server process that hosts my application web & EJB and JMS and Database connectios etc. Using the PID what is the best way to find out the Inbound connection sockets i.e those parties that connect to my server process on different ports numbers and Outbound connection... (2 Replies)
Discussion started by: mohtashims
2 Replies