diff options
author | Sterling Hughes <sterling@bumblebury.com> | 2002-01-07 20:52:32 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@bumblebury.com> | 2002-01-07 20:52:32 +0000 |
commit | 8d7f402efbcace85851c6bb8f6aa2452c15a9595 (patch) | |
tree | 4faf3a7b90bca33494801df5e0b58415d3ff39c3 /lib/hostip.h | |
parent | d3299beec734be02a781c393a994d525e3eaaac1 (diff) |
Make cach'ing work with threads now, there are now three cases:
- Use a global dns cache (via setting the tentatively named,
CURLOPT_DNS_USE_GLOBAL_CACHE option to true)
- Use a per-handle dns cache, by default
- Use a pooled dns cache when in the "multi" interface
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 97b50ae9d..0cc98b605 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -23,12 +23,17 @@ * $Id$ *****************************************************************************/ +#include "hash.h" + struct addrinfo; struct hostent; struct SessionHandle; -void Curl_host_cache_init(void); -void Curl_host_cache_dtor(void); +void Curl_global_host_cache_init(void); +void Curl_global_host_cache_dtor(void); +curl_hash *Curl_global_host_cache_get(void); + +#define Curl_global_host_cache_use(__p) ((__p)->set.global_dns_cache) Curl_addrinfo *Curl_resolv(struct SessionHandle *data, char *hostname, |