1libssh2_session_block_directions(l3i)bssh2 manulailbssh2_session_block_directions(3)
2
3
4

NAME

6       libssh2_session_block_directions - get directions to wait for
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_session_block_directions(LIBSSH2_SESSION *session);
12

DESCRIPTION

14       session - Session instance as returned by libssh2_session_init_ex(3)
15
16       When  any  of libssh2 functions return LIBSSH2_ERROR_EAGAIN an applica‐
17       tion should wait for the socket to have data available for  reading  or
18       writing.  Depending on the return value of libssh2_session_block_direc‐
19       tions(3) an application should wait for read, write or both.
20

RETURN VALUE

22       Returns the set of directions as a binary mask. Can  be  a  combination
23       of:
24
25       LIBSSH2_SESSION_BLOCK_INBOUND: Inbound direction blocked.
26
27       LIBSSH2_SESSION_BLOCK_OUTBOUND: Outbound direction blocked.
28
29       Application  should  wait  for data to be available for socket prior to
30       calling a libssh2 function again. If  LIBSSH2_SESSION_BLOCK_INBOUND  is
31       set  select  should  contain the session socket in readfds set.  Corre‐
32       spondingly  in  case  of  LIBSSH2_SESSION_BLOCK_OUTBOUND  writefds  set
33       should contain the socket.
34

AVAILABILITY

36       Added in 1.0
37
38
39
40libssh2 1.0                       1 Oct 2008libssh2_session_block_directions(3)
Impressum