libwget-dns-caching(3) | Library Functions Manual | libwget-dns-caching(3) |
libwget-dns-caching - DNS caching
struct cache_entry
struct wget_dns_cache_st
int wget_dns_cache_init (wget_dns_cache **cache)
void wget_dns_cache_free (wget_dns_cache **cache)
struct addrinfo * wget_dns_cache_get (wget_dns_cache *cache,
const char *host, uint16_t port)
int wget_dns_cache_add (wget_dns_cache *cache, const char *host,
uint16_t port, struct addrinfo **addrinfo)
DNS cache management functions.
Parameters
Returns
Allocates and initializes a wget_dns_cache instance.
Parameters
Free the resources allocated by wget_dns_cache_init().
Parameters
Returns
Parameters
Returns
This functions adds addrinfo to the given DNS cache cache.
If an entry for [host,port] already exists, addrinfo is free'd and replaced by the cached entry. Do not free addrinfo yourself - this will be done when the whole cache is freed.
Generated automatically by Doxygen for wget2 from the source code.
Version 2.1.0 | wget2 |