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