libssh2_session_set_blocking.3 (1059B)
1.TH libssh2_session_set_blocking 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_session_set_blocking - set or clear blocking mode on session 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8void 9libssh2_session_set_blocking(LIBSSH2_SESSION *session, int blocking); 10.fi 11.SH DESCRIPTION 12\fIsession\fP - session instance as returned by 13.BR libssh2_session_init_ex(3) 14 15\fIblocking\fP - Set to a non-zero value to make the channel block, or zero to 16make it non-blocking. 17 18Set or clear blocking mode on the selected on the session. This will 19instantly affect any channels associated with this session. If a read is 20performed on a session with no data currently available, a blocking session 21will wait for data to arrive and return what it receives. A non-blocking 22session will return immediately with an empty buffer. If a write is performed 23on a session with no room for more data, a blocking session will wait for 24room. A non-blocking session will return immediately without writing 25anything. 26.SH RETURN VALUE 27None 28.SH SEE ALSO 29.BR libssh2_session_init_ex(3)