BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB-UTIL Reference

resolver.h File Reference

Asynchronous DNS resolver. More...

Go to the source code of this file.

Data Structures

struct  pj_dns_settings
 
struct  pj_dns_a_record
 
struct  pj_dns_addr_record
 

Typedefs

typedef struct pj_dns_resolver pj_dns_resolver
 
typedef struct pj_dns_async_query pj_dns_async_query
 
typedef void pj_dns_callback(void *user_data, pj_status_t status, pj_dns_parsed_packet *response)
 

Functions

void pj_dns_settings_default (pj_dns_settings *s)
 
pj_status_t pj_dns_resolver_create (pj_pool_factory *pf, const char *name, unsigned options, pj_timer_heap_t *timer, pj_ioqueue_t *ioqueue, pj_dns_resolver **p_resolver)
 
pj_status_t pj_dns_resolver_set_ns (pj_dns_resolver *resolver, unsigned count, const pj_str_t servers[], const pj_uint16_t ports[])
 
pj_status_t pj_dns_resolver_get_settings (pj_dns_resolver *resolver, pj_dns_settings *st)
 
pj_status_t pj_dns_resolver_set_settings (pj_dns_resolver *resolver, const pj_dns_settings *st)
 
void pj_dns_resolver_handle_events (pj_dns_resolver *resolver, const pj_time_val *timeout)
 
pj_status_t pj_dns_resolver_destroy (pj_dns_resolver *resolver, pj_bool_t notify)
 
pj_status_t pj_dns_resolver_start_query (pj_dns_resolver *resolver, const pj_str_t *name, int type, unsigned options, pj_dns_callback *cb, void *user_data, pj_dns_async_query **p_query)
 
pj_status_t pj_dns_resolver_cancel_query (pj_dns_async_query *query, pj_bool_t notify)
 
pj_status_t pj_dns_parse_a_response (const pj_dns_parsed_packet *pkt, pj_dns_a_record *rec)
 
pj_status_t pj_dns_parse_addr_response (const pj_dns_parsed_packet *pkt, pj_dns_addr_record *rec)
 
pj_status_t pj_dns_resolver_add_entry (pj_dns_resolver *resolver, const pj_dns_parsed_packet *pkt, pj_bool_t set_ttl)
 
unsigned pj_dns_resolver_get_cached_count (pj_dns_resolver *resolver)
 
void pj_dns_resolver_dump (pj_dns_resolver *resolver, pj_bool_t detail)
 

Detailed Description

Asynchronous DNS resolver.

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.