1libssh2_poll(3) libssh2 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
12 libssh2_poll(LIBSSH2_POLLFD *fds, unsigned int nfds, long timeout);
13
15 This function is deprecated. Do note use. We encourage users to instead
16 use the poll(3) or select(3) functions to check for socket activity or
17 when specific sockets are ready to get received from or send to.
18
19 Poll for activity on a socket, channel, listener, or any combination of
20 these three types. The calling semantics for this function generally
21 match poll(2) however the structure of fds is somewhat more complex in
22 order to accommodate the disparate datatypes, POLLFD constants have
23 been namespaced to avoid platform discrepancies, and revents has addi‐
24 tional values defined.
25
27 Number of fds with interesting events.
28
30 libssh2_poll_channel_read(3)
31
32
33
34libssh2 0.15 14 Dec 2006 libssh2_poll(3)