diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-15 17:33:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-15 17:33:49 +0000 |
commit | 3788f25eacbf4fcf20b04f1e74ea735b8b9b1396 (patch) | |
tree | 285ba121e95cd3e9d3c7fee096cc1246383c02f1 /lib/hostip.h | |
parent | 5b8852107b8a157024bef586f6d66f27efff26fc (diff) | |
download | curl-3788f25eacbf4fcf20b04f1e74ea735b8b9b1396.tar.gz |
added a library-wide interface for doing dns cache pruning, and no longer
make the pruning at each name lookup, only in Curl_done().
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index f902b5c64..c033bc25a 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -77,6 +77,9 @@ void Curl_freeaddrinfo(Curl_addrinfo *freeaddr); /* free cached name info */ void Curl_freednsinfo(void *freethis); +/* prune old entries from the DNS cache */ +void Curl_hostcache_prune(struct SessionHandle *data); + #ifdef CURLDEBUG void curl_freeaddrinfo(struct addrinfo *freethis, int line, const char *source); |