summaryrefslogtreecommitdiff
path: root/lib/select.h
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2020-03-15 11:07:08 +0100
committerMarc Hoersken <info@marc-hoersken.de>2020-03-15 11:08:27 +0100
commitc52b3420510301a62ce6a209720d57f8f41413a4 (patch)
tree331753cceced20a3477dcb01a14621706c68f262 /lib/select.h
parentdbd16c3e256c6ce872829d1654785485361a0a78 (diff)
downloadcurl-c52b3420510301a62ce6a209720d57f8f41413a4.tar.gz
select: move duplicate select preparation code into Curl_select
Reviewed by Daniel Stenberg Reviewed by Marcel Raad Closes #5078
Diffstat (limited to 'lib/select.h')
-rw-r--r--lib/select.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/select.h b/lib/select.h
index ec3021aac..56fe30367 100644
--- a/lib/select.h
+++ b/lib/select.h
@@ -72,6 +72,12 @@ struct pollfd
therefore defined here */
#define CURL_CSELECT_IN2 (CURL_CSELECT_ERR << 1)
+int Curl_select(curl_socket_t maxfd,
+ fd_set *fds_read,
+ fd_set *fds_write,
+ fd_set *fds_err,
+ time_t timeout_ms);
+
int Curl_socket_check(curl_socket_t readfd, curl_socket_t readfd2,
curl_socket_t writefd,
time_t timeout_ms);