1libssh2_poll(3)                 libssh2 manual                 libssh2_poll(3)
2
3
4

NAME

6       libssh2_poll - poll for activity on a socket, channel or listener
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_poll(LIBSSH2_POLLFD *fds, unsigned int nfds, long timeout);
12

DESCRIPTION

14       This function is deprecated. Do note use. We encourage users to instead
15       use the poll(3) or select(3) functions to check for socket activity  or
16       when specific sockets are ready to get received from or send to.
17
18       Poll for activity on a socket, channel, listener, or any combination of
19       these three types. The calling semantics for  this  function  generally
20       match  poll(2) however the structure of fds is somewhat more complex in
21       order to accommodate the disparate  datatypes,  POLLFD  constants  have
22       been  namespaced to avoid platform discrepancies, and revents has addi‐
23       tional values defined.
24

RETURN VALUE

26       Number of fds with interesting events.
27

SEE ALSO

29       libssh2_poll_channel_read(3)
30
31
32
33libssh2 0.15                      14 Dec 2006                  libssh2_poll(3)
Impressum