Sterling Hughes' provided initial DNS cache source code.

This commit is contained in:
Daniel Stenberg
2002-01-03 10:22:59 +00:00
parent 6aaee5f23b
commit 6de7dc5879
11 changed files with 648 additions and 29 deletions

View File

@@ -76,6 +76,7 @@
#include "ssluse.h"
#include "url.h"
#include "getinfo.h"
#include "hostip.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -139,7 +140,9 @@ CURLcode curl_global_init(long flags)
{
if (initialized)
return CURLE_OK;
Curl_host_cache_init();
if (flags & CURL_GLOBAL_SSL)
Curl_SSL_init();
@@ -162,6 +165,8 @@ void curl_global_cleanup(void)
if (!initialized)
return;
Curl_host_cache_dtor();
if (init_flags & CURL_GLOBAL_SSL)
Curl_SSL_cleanup();