unbound 0.1
ctx_query Struct Reference

The queries outstanding for the libunbound resolver. More...

#include <context.h>

Data Fields

struct rbnode_type node
 node in rbtree, must be first entry, key is ptr to the querynum
int querynum
 query id number, key for node
int async
 was this an async query?
int cancelled
 was this query cancelled (for bg worker)
ub_callback_type cb
 for async query, the callback function of type ub_callback_type
ub_event_callback_type cb_event
 for event callbacks the type is ub_event_callback_type
void * cb_arg
 for async query, the callback user arg
void * unique_info
 for async query the unique info
uint8_t * msg
 answer message, result from resolver lookup.
size_t msg_len
 resulting message length.
enum sec_status msg_security
 validation status on security
struct libworker * w
 store libworker that is handling this query
struct ub_result * res
 result structure, also contains original query, type, class.

Detailed Description

The queries outstanding for the libunbound resolver.

These are outstanding for async resolution. But also, outstanding for sync resolution by one of the threads that has joined the threadpool.

Field Documentation

◆ node

struct rbnode_type ctx_query::node

◆ querynum

◆ async

int ctx_query::async

◆ cancelled

int ctx_query::cancelled

was this query cancelled (for bg worker)

Referenced by handle_cancel(), libworker_bg_done_cb(), libworker_event_done_cb(), process_answer_detail(), and ub_cancel().

◆ cb

ub_callback_type ctx_query::cb

for async query, the callback function of type ub_callback_type

Referenced by context_new(), libworker_event_done_cb(), and process_answer_detail().

◆ cb_event

ub_event_callback_type ctx_query::cb_event

for event callbacks the type is ub_event_callback_type

Referenced by context_new(), and libworker_event_done_cb().

◆ cb_arg

void* ctx_query::cb_arg

for async query, the callback user arg

Referenced by context_new(), libworker_event_done_cb(), and process_answer_detail().

◆ unique_info

void* ctx_query::unique_info

for async query the unique info

Referenced by handle_newq(), libworker_attach_mesh(), and libworker_fg().

◆ msg

◆ msg_len

size_t ctx_query::msg_len

◆ msg_security

◆ w

◆ res

struct ub_result* ctx_query::res

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