1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-31 23:30:25 +03:00

- Vlad Grachov brought the new function called

libssh2_session_block_directions() which returns a bitmask for what
  directions the connection blocks. It is to be used applications that use
  non-blocking sockets and when a libssh2 function returns
  LIBSSH2_ERROR_EAGAIN this function can be used to figure out in which
  direction the socket would block and thus it can wait for the socket to
  again be ready for communication in that direction before it calls libssh2
  again.
This commit is contained in:
Daniel Stenberg
2008-11-24 13:31:00 +00:00
parent 881b01e522
commit 160f89f42e
8 changed files with 52 additions and 9 deletions

View File

@@ -705,6 +705,7 @@ struct _LIBSSH2_SESSION
int socket_fd;
int socket_block;
int socket_state;
int socket_block_directions;
/* Error tracking */
char *err_msg;