wget2: dns_cache.c File Reference

| wget2 2.0.0

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Functions
dns_cache.c File Reference

### (2021-09-05 15:34:56 -0600, (build 0f85ef3))

Functions for DNS caching. More...

`#include <config.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include <netdb.h>`
`#include <wget.h>`
`#include "private.h"`
Include dependency graph for dns_cache.c:

## Data Structures
struct | cache_entry
struct | wget_dns_cache_st

## Functions
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)

## Detailed Description

Functions for DNS caching.