1libssh2_session_set_blocking(3) libssh2 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
12 libssh2_session_set_blocking(LIBSSH2_SESSION *session, int blocking);
13
15 session - session instance as returned by libssh2_session_init_ex(3)
16
17 blocking - Set to a non-zero value to make the channel block, or zero
18 to make it non-blocking.
19
20 Set or clear blocking mode on the selected on the session. This will
21 instantly affect any channels associated with this session. If a read
22 is performed on a session with no data currently available, a blocking
23 session will wait for data to arrive and return what it receives. A
24 non-blocking session will return immediately with an empty buffer. If
25 a write is performed on a session with no room for more data, a block‐
26 ing session will wait for room. A non-blocking session will return im‐
27 mediately without writing anything.
28
30 None
31
33 libssh2_session_init_ex(3)
34
35
36
37libssh2 0.15 1 Jun 2007 libssh2_session_set_blocking(3)