geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
1.0 KiB

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