aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-05 14:40:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-05 14:40:59 +0000
commitb73612392d7afbf9835a119446e2a58e72384b00 (patch)
treeec582f5818cdc30837afe560830b895618a6694d /lib/hostip.h
parentf85935f0f964f1475e522914c3f665508349e5ed (diff)
ares awareness/usage/support added. If configure --enable-ares is used, we
build libcurl to use ares for asynch name resolves.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index 36828ee1b..2f53f4f16 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -29,6 +29,7 @@
struct addrinfo;
struct hostent;
struct SessionHandle;
+struct connectdata;
void Curl_global_host_cache_init(void);
void Curl_global_host_cache_dtor(void);
@@ -41,9 +42,6 @@ struct Curl_dns_entry {
time_t timestamp;
long inuse; /* use-counter, make very sure you decrease this
when you're done using the address you received */
-#ifdef CURLDEBUG
- char *entry_id;
-#endif
};
/*
@@ -54,10 +52,18 @@ struct Curl_dns_entry {
* use, or we'll leak memory!
*/
-struct Curl_dns_entry *Curl_resolv(struct SessionHandle *data,
- char *hostname,
- int port);
+int Curl_resolv(struct connectdata *conn,
+ char *hostname,
+ int port,
+ struct Curl_dns_entry **dnsentry);
+CURLcode Curl_is_resolved(struct connectdata *conn, bool *done);
+CURLcode Curl_wait_for_resolv(struct connectdata *conn,
+ struct Curl_dns_entry **dnsentry);
+CURLcode Curl_multi_ares_fdset(struct connectdata *conn,
+ fd_set *read_fd_set,
+ fd_set *write_fd_set,
+ int *max_fdp);
/* unlock a previously resolved dns entry */
void Curl_resolv_unlock(struct SessionHandle *data, struct Curl_dns_entry *dns);