mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
poll: Fix poll input events.
bug#38
This commit is contained in:
@@ -303,7 +303,7 @@ int ssh_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) {
|
||||
*
|
||||
* @param fd Socket that will be polled.
|
||||
* @param events Poll events that will be monitored for the socket. i.e.
|
||||
* POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL
|
||||
* POLLIN, POLLPRI, POLLOUT
|
||||
* @param cb Function to be called if any of the events are set.
|
||||
* The prototype of cb is:
|
||||
* int (*ssh_poll_callback)(ssh_poll_handle p, socket_t fd,
|
||||
@@ -750,7 +750,7 @@ static int ssh_event_fd_wrapper_callback(ssh_poll_handle p, socket_t fd, int rev
|
||||
* @param event The ssh_event
|
||||
* @param fd Socket that will be polled.
|
||||
* @param events Poll events that will be monitored for the socket. i.e.
|
||||
* POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL
|
||||
* POLLIN, POLLPRI, POLLOUT
|
||||
* @param cb Function to be called if any of the events are set.
|
||||
* The prototype of cb is:
|
||||
* int (*ssh_event_callback)(socket_t fd, int revents,
|
||||
|
Reference in New Issue
Block a user