1libssh2_session_set_blocking(3) libssh2 manual libssh2_session_set_blocking(3)
2
3
4

NAME

6       libssh2_session_set_blocking - set or clear blocking mode on session
7

SYNOPSIS

9       #include <libssh2.h>
10
11       void  libssh2_session_set_blocking(LIBSSH2_SESSION *session, int block‐
12       ing);
13
14

DESCRIPTION

16       session - session instance as returned by libssh2_session_init_ex(3)
17
18       blocking - Set to a non-zero value to make the channel block,  or  zero
19       to make it non-blocking.
20
21       Set  or  clear blocking mode on the selected on the session.  This will
22       instantly affect any channels associated with this session. If  a  read
23       is  performed on a session with no data currently available, a blocking
24       session will wait for data to arrive and return what  it  receives.   A
25       non-blocking  session will return immediately with an empty buffer.  If
26       a write is performed on a session with no room for more data, a  block‐
27       ing  session  will  wait  for room.  A non-blocking session will return
28       immediately without writing anything.
29
30

RETURN VALUE

32       None
33
34

SEE ALSO

36       libssh2_session_init_ex(3)
37
38
39
40libssh2 0.15                      1 Jun 2007   libssh2_session_set_blocking(3)
Impressum