1libssh2_session_set_blocking(3) libssh2 manual libssh2_session_set_blocking(3)
2
3
4
6 libssh2_session_set_blocking - set or clear blocking mode on session
7
9 #include <libssh2.h>
10
11 void libssh2_session_set_blocking(LIBSSH2_SESSION *session, int block‐
12 ing);
13
14
16 session - session instance as returned by libssh2_session_init(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 sessoin. This will
22 instantly affect any channels associtated 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
32 None
33
34
36 libssh2_session_init(3)
37
38
39
40libssh2 0.15 1 Jun 2007 libssh2_session_set_blocking(3)