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
 
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 libworkerw
 store libworker that is handling this query
 
struct ub_resultres
 result structure, also contains original query, type, class. More...
 

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

◆ res

struct ub_result* ctx_query::res

result structure, also contains original query, type, class.

malloced ptr ready to hand to the client.

Referenced by add_bg_result(), context_query_delete(), context_serialize_answer(), context_serialize_new_query(), libworker_fillup_fg(), process_answer_detail(), setup_qinfo_edns(), and ub_resolve().


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