1libssh2_session_block_directions(3) libssh2libssh2_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
12       libssh2_session_block_directions(LIBSSH2_SESSION *session);
13

DESCRIPTION

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

RETURN VALUE

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

AVAILABILITY

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