libssh2_poll.3 966 B

123456789101112131415161718192021
  1. .TH libssh2_poll 3 "14 Dec 2006" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_poll - poll for activity on a socket, channel or listener
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int libssh2_poll(LIBSSH2_POLLFD *fds, unsigned int nfds, long timeout);
  7. .SH DESCRIPTION
  8. This function is deprecated. Do note use. We encourage users to instead use
  9. the \fIpoll(3)\fP or \fIselect(3)\fP functions to check for socket activity or
  10. when specific sockets are ready to get received from or send to.
  11. Poll for activity on a socket, channel, listener, or any combination of these
  12. three types. The calling semantics for this function generally match
  13. \fIpoll(2)\fP however the structure of fds is somewhat more complex in order
  14. to accommodate the disparate datatypes, POLLFD constants have been namespaced
  15. to avoid platform discrepancies, and revents has additional values defined.
  16. .SH "RETURN VALUE"
  17. Number of fds with interesting events.
  18. .SH SEE ALSO
  19. .BR libssh2_poll_channel_read(3)