ELinks 0.18.0
Typedefs | Enumerations | Functions
dns.h File Reference
#include <sys/types.h>
Include dependency graph for dns.h:
This graph shows which files directly or indirectly include this file:

Typedefs

typedef void(* dns_callback_T) (void *, struct sockaddr_storage *, int)
 

Enumerations

enum  dns_result { DNS_ERROR = -1 , DNS_SUCCESS = 0 , DNS_ASYNC = 1 }
 

Functions

enum dns_result do_real_lookup (char *host, struct sockaddr_storage **addr, int *addrlen, int called_from_thread)
 
enum dns_result find_host (char *name, void **queryref, dns_callback_T done, void *data, int no_cache)
 
void kill_dns_request (void **queryref)
 
void shrink_dns_cache (int whole)
 

Typedef Documentation

◆ dns_callback_T

typedef void(* dns_callback_T) (void *, struct sockaddr_storage *, int)

Enumeration Type Documentation

◆ dns_result

enum dns_result
Enumerator
DNS_ERROR 
DNS_SUCCESS 
DNS_ASYNC 

Function Documentation

◆ do_real_lookup()

enum dns_result do_real_lookup ( char *  host,
struct sockaddr_storage **  addr,
int *  addrlen,
int  called_from_thread 
)

◆ find_host()

enum dns_result find_host ( char *  name,
void **  queryref,
dns_callback_T  done,
void *  data,
int  no_cache 
)

◆ kill_dns_request()

void kill_dns_request ( void **  queryref)

◆ shrink_dns_cache()

void shrink_dns_cache ( int  whole)