Searched refs:pfd (Results 1 – 5 of 5) sorted by relevance
/curl/lib/ |
H A D | socketpair.c | 141 struct pollfd pfd[1]; in Curl_socketpair() local 189 pfd[0].fd = listener; in Curl_socketpair() 190 pfd[0].events = POLLIN; in Curl_socketpair() 191 pfd[0].revents = 0; in Curl_socketpair() 192 (void)Curl_poll(pfd, 1, 1000); /* one second */ in Curl_socketpair() 212 pfd[0].fd = socks[1]; in Curl_socketpair() 213 pfd[0].events = POLLIN; in Curl_socketpair() 214 pfd[0].revents = 0; in Curl_socketpair() 215 (void)Curl_poll(pfd, 1, 1000); /* one second */ in Curl_socketpair()
|
H A D | select.c | 190 struct pollfd pfd[3]; in Curl_socket_check() local 207 pfd[num].fd = readfd0; in Curl_socket_check() 209 pfd[num].revents = 0; in Curl_socket_check() 213 pfd[num].fd = readfd1; in Curl_socket_check() 215 pfd[num].revents = 0; in Curl_socket_check() 219 pfd[num].fd = writefd; in Curl_socket_check() 220 pfd[num].events = POLLWRNORM|POLLOUT|POLLPRI; in Curl_socket_check() 221 pfd[num].revents = 0; in Curl_socket_check() 234 if(pfd[num].revents & (POLLPRI|POLLNVAL)) in Curl_socket_check() 241 if(pfd[num].revents & (POLLPRI|POLLNVAL)) in Curl_socket_check() [all …]
|
H A D | asyn-ares.c | 319 struct pollfd pfd[ARES_GETSOCK_MAXNUM]; in waitperform() local 327 pfd[i].events = 0; in waitperform() 328 pfd[i].revents = 0; in waitperform() 330 pfd[i].fd = socks[i]; in waitperform() 331 pfd[i].events |= POLLRDNORM|POLLIN; in waitperform() 334 pfd[i].fd = socks[i]; in waitperform() 335 pfd[i].events |= POLLWRNORM|POLLOUT; in waitperform() 337 if(pfd[i].events) in waitperform() 344 nfds = Curl_poll(pfd, (unsigned int)num, timeout_ms); in waitperform() 361 pfd[i].fd : ARES_SOCKET_BAD, in waitperform() [all …]
|
H A D | telnet.c | 1262 struct pollfd pfd[1]; in send_telnet_data() local 1264 pfd[0].events = POLLOUT; in send_telnet_data() 1265 switch(Curl_poll(pfd, 1, -1)) { in send_telnet_data() 1314 struct pollfd pfd[2]; in telnet_do() local 1519 pfd[0].fd = sockfd; in telnet_do() 1520 pfd[0].events = POLLIN; in telnet_do() 1529 pfd[1].events = POLLIN; in telnet_do() 1532 if(pfd[1].fd < 0) { in telnet_do() 1546 pfd[0].revents = 0; in telnet_do() 1547 pfd[1].revents = 0; in telnet_do() [all …]
|
H A D | cf-socket.c | 1686 struct pollfd pfd[1]; in cf_socket_conn_is_alive() local 1695 pfd[0].fd = ctx->sock; in cf_socket_conn_is_alive() 1696 pfd[0].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in cf_socket_conn_is_alive() 1697 pfd[0].revents = 0; in cf_socket_conn_is_alive() 1699 r = Curl_poll(pfd, 1, 0); in cf_socket_conn_is_alive() 1708 else if(pfd[0].revents & (POLLERR|POLLHUP|POLLPRI|POLLNVAL)) { in cf_socket_conn_is_alive()
|
Completed in 39 milliseconds