Electroneum
ctx_query Struct Reference

#include <context.h>

Collaboration diagram for ctx_query:

Public Attributes

struct rbnode_type node
 
int querynum
 
int async
 
int cancelled
 
ub_callback_type cb
 
ub_event_callback_type cb_event
 
void * cb_arg
 
uint8_tmsg
 
size_t msg_len
 
enum sec_status msg_security
 
struct libworkerw
 
struct ub_resultres
 

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.

Definition at line 142 of file context.h.

Member Data Documentation

◆ async

int ctx_query::async

was this an async query?

Definition at line 148 of file context.h.

◆ cancelled

int ctx_query::cancelled

was this query cancelled (for bg worker)

Definition at line 150 of file context.h.

◆ cb

ub_callback_type ctx_query::cb

for async query, the callback function of type ub_callback_type

Definition at line 153 of file context.h.

◆ cb_arg

void* ctx_query::cb_arg

for async query, the callback user arg

Definition at line 157 of file context.h.

◆ cb_event

ub_event_callback_type ctx_query::cb_event

for event callbacks the type is ub_event_callback_type

Definition at line 155 of file context.h.

◆ msg

uint8_t* ctx_query::msg

answer message, result from resolver lookup.

Definition at line 160 of file context.h.

◆ msg_len

size_t ctx_query::msg_len

resulting message length.

Definition at line 162 of file context.h.

◆ msg_security

enum sec_status ctx_query::msg_security

validation status on security

Definition at line 164 of file context.h.

◆ node

struct rbnode_type ctx_query::node

node in rbtree, must be first entry, key is ptr to the querynum

Definition at line 144 of file context.h.

◆ querynum

int ctx_query::querynum

query id number, key for node

Definition at line 146 of file context.h.

◆ res

struct ub_result* ctx_query::res

result structure, also contains original query, type, class. malloced ptr ready to hand to the client.

Definition at line 170 of file context.h.

◆ w

struct libworker* ctx_query::w

store libworker that is handling this query

Definition at line 166 of file context.h.


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