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

NAME

6       libssh2_session_block_directions  -  get  directions that socket should
7       wait for before calling libssh2 function again
8

SYNOPSIS

10       #include <libssh2.h>
11
12       int 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_INBOUND writefds set should
34       contain the socket.
35

AVAILABILITY

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