diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-04-16 16:34:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-04-16 16:34:08 +0000 |
commit | 76627b322e369c209c60863b9e1f05e3ce02953d (patch) | |
tree | 74658f06175743e0518963b8e5ed9e37eae3f1c5 /lib/select.h | |
parent | 827228bd69f8dd17824ae878d6211809b193eaff (diff) | |
download | curl-76627b322e369c209c60863b9e1f05e3ce02953d.tar.gz |
- Robert Iakobashvil added curl_multi_socket_action() to libcurl, which is a
function that deprecates the curl_multi_socket() function. Using the new
function the application tell libcurl what action that was found in the
socket that it passes in. This gives a significant performance boost as it
allows libcurl to avoid a call to poll()/select() for every call to
curl_multi_socket*().
Diffstat (limited to 'lib/select.h')
-rw-r--r-- | lib/select.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/select.h b/lib/select.h index 5a62a6fd8..77b3e915f 100644 --- a/lib/select.h +++ b/lib/select.h @@ -76,11 +76,8 @@ struct pollfd #define POLLRDBAND POLLPRI #endif -#define CSELECT_IN 0x01 -#define CSELECT_OUT 0x02 -#define CSELECT_ERR 0x04 - -int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms); +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); |