30 lines · 1.0 KB · Text
RawDownload
.TH libssh2_session_set_blocking 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual".SH NAMElibssh2_session_set_blocking - set or clear blocking mode on session.SH SYNOPSIS#include <libssh2.h> void libssh2_session_set_blocking(LIBSSH2_SESSION *session, int blocking); .SH DESCRIPTION\fIsession\fP - session instance as returned by .BR libssh2_session_init_ex(3) \fIblocking\fP - Set to a non-zero value to make the channel block, or zero tomake it non-blocking. Set or clear blocking mode on the selected on the session.  This willinstantly affect any channels associated with this session. If a read isperformed on a session with no data currently available, a blocking sessionwill wait for data to arrive and return what it receives.  A non-blockingsession will return immediately with an empty buffer.  If a write is performedon a session with no room for more data, a blocking session will wait forroom.  A non-blocking session will return immediately without writinganything. .SH RETURN VALUENone .SH SEE ALSO.BR libssh2_session_init_ex(3)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t