Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
CURLOPT_DNS_USE_GLOBAL_CACHE(3) | libcurl | CURLOPT_DNS_USE_GLOBAL_CACHE(3) |
NAME
CURLOPT_DNS_USE_GLOBAL_CACHE - global DNS cacheSYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_USE_GLOBAL_CACHE,
long enable);
DESCRIPTION
Has no function since 7.62.0. Do not use!DEFAULT
0PROTOCOLS
AllEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode ret;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
/* switch off the use of a global, thread unsafe, cache */
curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, 0L);
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
}
AVAILABILITY
Deprecated since 7.11.1. Function removed in 7.62.0.RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.SEE ALSO
CURLOPT_DNS_CACHE_TIMEOUT(3), CURLOPT_SHARE(3)December 4, 2023 | ibcurl 8.5.0 |