Asterisk - The Open Source Telephony Project  18.5.0
Public Member Functions | Data Fields
ast_dns_resolver Struct Reference

DNS resolver implementation. More...

#include <dns_resolver.h>

Public Member Functions

 AST_RWLIST_ENTRY (ast_dns_resolver) next
 Linked list information. More...
 

Data Fields

int(* cancel )(struct ast_dns_query *query)
 Cancel resolution of a DNS query. More...
 
const char * name
 The name of the resolver implementation. More...
 
unsigned int priority
 Priority for this resolver if multiple exist, lower being higher priority. More...
 
int(* resolve )(struct ast_dns_query *query)
 Perform resolution of a DNS query. More...
 

Detailed Description

DNS resolver implementation.

Definition at line 32 of file dns_resolver.h.

Member Function Documentation

◆ AST_RWLIST_ENTRY()

AST_RWLIST_ENTRY ( ast_dns_resolver  )

Linked list information.

Field Documentation

◆ cancel

int(* cancel) (struct ast_dns_query *query)

Cancel resolution of a DNS query.

Definition at line 48 of file dns_resolver.h.

Referenced by ast_dns_query_set_resolve_cancel(), ast_dns_resolve_cancel(), and ast_dns_resolver_register().

◆ name

const char* name

◆ priority

unsigned int priority

Priority for this resolver if multiple exist, lower being higher priority.

Definition at line 37 of file dns_resolver.h.

Referenced by ast_dns_resolver_register().

◆ resolve

int(* resolve) (struct ast_dns_query *query)

Perform resolution of a DNS query.

Note
The reference count of the query should be increased and released upon the query completing or being successfully cancelled

Definition at line 45 of file dns_resolver.h.

Referenced by ast_dns_query_set_resolve_async(), ast_dns_resolve_async(), and ast_dns_resolver_register().


The documentation for this struct was generated from the following file: