#include "setup.h"Go to the source code of this file.
Classes | |
| struct | pollfd |
Defines | |
| #define | POLLIN 0x01 |
| #define | POLLPRI 0x02 |
| #define | POLLOUT 0x04 |
| #define | POLLERR 0x08 |
| #define | POLLHUP 0x10 |
| #define | POLLNVAL 0x20 |
| #define | POLLRDNORM POLLIN |
| #define | POLLWRNORM POLLOUT |
| #define | POLLRDBAND POLLPRI |
Functions | |
| int | Curl_socket_ready (curl_socket_t readfd, curl_socket_t writefd, int timeout_ms) |
| int | Curl_poll (struct pollfd ufds[], unsigned int nfds, int timeout_ms) |
| #define POLLERR 0x08 |
| #define POLLHUP 0x10 |
| #define POLLIN 0x01 |
Definition at line 25 of file select.h.
Referenced by Curl_poll(), Curl_socket_ready(), Curl_telnet(), and asio::detail::socket_ops::poll_read().
| #define POLLNVAL 0x20 |
| #define POLLOUT 0x04 |
Definition at line 27 of file select.h.
Referenced by Curl_poll(), Curl_socket_ready(), and asio::detail::socket_ops::poll_write().
| #define POLLPRI 0x02 |
| #define POLLRDBAND POLLPRI |
| #define POLLRDNORM POLLIN |
| #define POLLWRNORM POLLOUT |
| int Curl_poll | ( | struct pollfd | ufds[], | |
| unsigned int | nfds, | |||
| int | timeout_ms | |||
| ) |
Definition at line 351 of file select.c.
References CURL_SOCKET_BAD, curlx_tvnow(), EINVAL, elapsed_ms, libtorrent::dht::messages::error, error_is_EINTR, FALSE, pollfd::fd, NULL, POLLIN, POLLOUT, POLLPRI, POLLRDBAND, POLLRDNORM, POLLWRNORM, pollfd::revents, asio::detail::socket_ops::select(), SOCKERRNO, TRUE, timeval::tv_sec, timeval::tv_usec, VERIFY_SOCK, and wait_ms().
Referenced by Curl_telnet().
| int Curl_socket_ready | ( | curl_socket_t | readfd, | |
| curl_socket_t | writefd, | |||
| int | timeout_ms | |||
| ) |
Definition at line 172 of file select.c.
References CURL_CSELECT_ERR, CURL_CSELECT_IN, CURL_CSELECT_OUT, CURL_SOCKET_BAD, curlx_tvnow(), EINVAL, elapsed_ms, libtorrent::dht::messages::error, error_is_EINTR, pollfd::events, pollfd::fd, NULL, POLLERR, POLLHUP, POLLIN, POLLNVAL, POLLOUT, POLLPRI, POLLRDBAND, POLLRDNORM, POLLWRNORM, pollfd::revents, asio::detail::socket_ops::select(), SOCKERRNO, timeval::tv_sec, timeval::tv_usec, VERIFY_SOCK, and wait_ms().
Referenced by AllowServerConnect(), blockread_all(), Curl_ftp_multi_statemach(), Curl_GetFTPResponse(), Curl_proxyCONNECT(), Curl_readwrite(), Curl_SOCKS5(), Curl_tftp(), ftp_easy_statemach(), SocketIsDead(), Transfer(), and waitconnect().
1.5.6