aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-09-29 21:02:22 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-09-29 21:02:22 +0000
commit4adcf7e9ed32ed055470a17f715ee222285c1308 (patch)
tree6a8d9c28552a054836261626d2290ff185695c61 /lib/hostip.h
parent9f8c40ed78a8673ed14427dee8bd3c1858843745 (diff)
downloadgnurl-4adcf7e9ed32ed055470a17f715ee222285c1308.tar.gz
gnurl-4adcf7e9ed32ed055470a17f715ee222285c1308.tar.bz2
gnurl-4adcf7e9ed32ed055470a17f715ee222285c1308.zip
Moved all signal-based name resolution timeout handling into a single new
Curl_resolv_timeout function to reduce coupling.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index c6172be0f..3864dd90b 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -158,11 +158,15 @@ struct Curl_dns_entry {
* use, or we'll leak memory!
*/
/* return codes */
+#define CURLRESOLV_TIMEDOUT -2
#define CURLRESOLV_ERROR -1
#define CURLRESOLV_RESOLVED 0
#define CURLRESOLV_PENDING 1
int Curl_resolv(struct connectdata *conn, const char *hostname,
int port, struct Curl_dns_entry **dnsentry);
+int Curl_resolv_timeout(struct connectdata *conn, const char *hostname,
+ int port, struct Curl_dns_entry **dnsentry,
+ long timeout);
/*
* Curl_ipvalid() checks what CURL_IPRESOLVE_* requirements that might've