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.
 
 
 
 

30 lines
1.2 KiB

  1. .TH libssh2_session_block_directions 3 "1 Oct 2008" "libssh2 1.0" "libssh2 manual"
  2. .SH NAME
  3. libssh2_session_block_directions - get directions to wait for
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_session_block_directions(LIBSSH2_SESSION *session);
  8. .SH DESCRIPTION
  9. \fIsession\fP - Session instance as returned by \fBlibssh2_session_init_ex(3)\fP
  10. When any of libssh2 functions return \fBLIBSSH2_ERROR_EAGAIN\fP an application
  11. should wait for the socket to have data available for reading or
  12. writing. Depending on the return value of
  13. \fIlibssh2_session_block_directions(3)\fP an application should wait for read,
  14. write or both.
  15. .SH RETURN VALUE
  16. Returns the set of directions as a binary mask. Can be a combination of:
  17. LIBSSH2_SESSION_BLOCK_INBOUND: Inbound direction blocked.
  18. LIBSSH2_SESSION_BLOCK_OUTBOUND: Outbound direction blocked.
  19. Application should wait for data to be available for socket prior to calling a
  20. libssh2 function again. If \fBLIBSSH2_SESSION_BLOCK_INBOUND\fP is set select
  21. should contain the session socket in readfds set. Correspondingly in case of
  22. \fBLIBSSH2_SESSION_BLOCK_OUTBOUND\fP writefds set should contain the socket.
  23. .SH AVAILABILITY
  24. Added in 1.0