1libssh2_poll(3) libssh2 manual libssh2_poll(3)
2
3
4
6 libssh2_poll - poll for activity on a socket, channel or listener
7
9 #include <libssh2.h>
10
11 int libssh2_poll(LIBSSH2_POLLFD *fds, unsigned int nfds, long timeout);
12
14 Poll for activity on a socket, channel, listener, or any combination of
15 these three types. The calling semantics for this function generally
16 match poll(2) however the structure of fds is somewhat more complex in
17 order to accommodate the disparate datatypes, POLLFD constants have
18 been namespaced to avoid platform discrepancies, and revents has addi‐
19 tional values defined.
20
22 Number of fds with interesting events.
23
25 libssh2_poll_channel_read(3)
26
27
28
29libssh2 0.15 14 Dec 2006 libssh2_poll(3)