Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions
ngx_resolver.h File Reference
#include <ngx_config.h>
#include <ngx_core.h>
Include dependency graph for ngx_resolver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ngx_udp_connection_t
struct  ngx_resolver_node_t
struct  ngx_resolver_t
struct  ngx_resolver_ctx_s

Macros

#define NGX_RESOLVE_A   1
#define NGX_RESOLVE_CNAME   5
#define NGX_RESOLVE_PTR   12
#define NGX_RESOLVE_MX   15
#define NGX_RESOLVE_TXT   16
#define NGX_RESOLVE_DNAME   39
#define NGX_RESOLVE_FORMERR   1
#define NGX_RESOLVE_SERVFAIL   2
#define NGX_RESOLVE_NXDOMAIN   3
#define NGX_RESOLVE_NOTIMP   4
#define NGX_RESOLVE_REFUSED   5
#define NGX_RESOLVE_TIMEDOUT   NGX_ETIMEDOUT
#define NGX_NO_RESOLVER   (void *) -1
#define NGX_RESOLVER_MAX_RECURSION   50

Typedefs

typedef struct ngx_resolver_ctx_s ngx_resolver_ctx_t
typedef void(* ngx_resolver_handler_pt )(ngx_resolver_ctx_t *ctx)

Functions

ngx_resolver_tngx_resolver_create (ngx_conf_t *cf, ngx_str_t *names, ngx_uint_t n)
ngx_resolver_ctx_tngx_resolve_start (ngx_resolver_t *r, ngx_resolver_ctx_t *temp)
ngx_int_t ngx_resolve_name (ngx_resolver_ctx_t *ctx)
void ngx_resolve_name_done (ngx_resolver_ctx_t *ctx)
ngx_int_t ngx_resolve_addr (ngx_resolver_ctx_t *ctx)
void ngx_resolve_addr_done (ngx_resolver_ctx_t *ctx)
char * ngx_resolver_strerror (ngx_int_t err)

Macro Definition Documentation

#define NGX_NO_RESOLVER   (void *) -1

Definition at line 31 of file ngx_resolver.h.

#define NGX_RESOLVE_A   1

Definition at line 16 of file ngx_resolver.h.

#define NGX_RESOLVE_CNAME   5

Definition at line 17 of file ngx_resolver.h.

#define NGX_RESOLVE_DNAME   39

Definition at line 21 of file ngx_resolver.h.

#define NGX_RESOLVE_FORMERR   1

Definition at line 23 of file ngx_resolver.h.

#define NGX_RESOLVE_MX   15

Definition at line 19 of file ngx_resolver.h.

#define NGX_RESOLVE_NOTIMP   4

Definition at line 26 of file ngx_resolver.h.

#define NGX_RESOLVE_NXDOMAIN   3

Definition at line 25 of file ngx_resolver.h.

#define NGX_RESOLVE_PTR   12

Definition at line 18 of file ngx_resolver.h.

#define NGX_RESOLVE_REFUSED   5

Definition at line 27 of file ngx_resolver.h.

#define NGX_RESOLVE_SERVFAIL   2

Definition at line 24 of file ngx_resolver.h.

#define NGX_RESOLVE_TIMEDOUT   NGX_ETIMEDOUT

Definition at line 28 of file ngx_resolver.h.

#define NGX_RESOLVE_TXT   16

Definition at line 20 of file ngx_resolver.h.

#define NGX_RESOLVER_MAX_RECURSION   50

Definition at line 33 of file ngx_resolver.h.

Typedef Documentation

Definition at line 45 of file ngx_resolver.h.

typedef void(* ngx_resolver_handler_pt)(ngx_resolver_ctx_t *ctx)

Definition at line 47 of file ngx_resolver.h.

Function Documentation

ngx_int_t ngx_resolve_addr ( ngx_resolver_ctx_t ctx)

Definition at line 630 of file ngx_resolver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void ngx_resolve_addr_done ( ngx_resolver_ctx_t ctx)

Definition at line 769 of file ngx_resolver.c.

Here is the call graph for this function:

ngx_int_t ngx_resolve_name ( ngx_resolver_ctx_t ctx)

Definition at line 306 of file ngx_resolver.c.

void ngx_resolve_name_done ( ngx_resolver_ctx_t ctx)

Definition at line 348 of file ngx_resolver.c.

Here is the call graph for this function:

ngx_resolver_ctx_t* ngx_resolve_start ( ngx_resolver_t r,
ngx_resolver_ctx_t temp 
)

Definition at line 271 of file ngx_resolver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_resolver_t* ngx_resolver_create ( ngx_conf_t cf,
ngx_str_t names,
ngx_uint_t  n 
)

Definition at line 97 of file ngx_resolver.c.

Here is the call graph for this function:

char* ngx_resolver_strerror ( ngx_int_t  err)

Definition at line 2166 of file ngx_resolver.c.