mesh_area Struct Reference

Mesh of query states. More...

#include <mesh.h>


Data Fields

struct module_stack mods
 active module stack
struct module_envenv
 environment for new states
rbtree_t run
 set of runnable queries (mesh_state.run_node)
rbtree_t all
 rbtree of all current queries (mesh_state.node)
size_t num_reply_addrs
 count of the total number of mesh_reply entries
size_t num_reply_states
 count of the number of mesh_states that have mesh_replies Because a state can send results to multiple reply addresses, this number must be equal or lower than num_reply_addrs.
size_t num_detached_states
 number of mesh_states that have no mesh_replies, and also an empty set of super-states, thus are 'toplevel' or detached internal opportunistic queries
size_t num_forever_states
 number of reply states in the forever list
size_t max_reply_states
 max total number of reply states to have
size_t max_forever_states
 max forever number of reply states to have
size_t stats_jostled
 stats, cumulative number of reply states jostled out
size_t stats_dropped
 stats, cumulative number of incoming client msgs dropped
size_t replies_sent
 number of replies sent
struct timeval replies_sum_wait
 sum of waiting times for the replies
struct timehisthistogram
 histogram of time values
size_t ans_secure
 (extended stats) secure replies
size_t ans_bogus
 (extended stats) bogus replies
size_t ans_rcode [16]
 (extended stats) rcodes in replies
size_t ans_nodata
 (extended stats) rcode nodata in replies
struct mesh_stateforever_first
 double linked list of the run-to-completion query states.
struct mesh_stateforever_last
 last entry in run forever list
struct mesh_statejostle_first
 double linked list of the query states that can be jostled out by new queries if too old.
struct mesh_statejostle_last
 last entry in jostle list - this is the entry that is newest
struct timeval jostle_max
 timeout for jostling.


Detailed Description

Mesh of query states.

Field Documentation

count of the number of mesh_states that have mesh_replies Because a state can send results to multiple reply addresses, this number must be equal or lower than num_reply_addrs.

Referenced by mesh_create(), mesh_detach_subs(), mesh_make_new_space(), mesh_new_callback(), mesh_new_client(), mesh_state_delete(), mesh_stats(), and server_stats_compile().

double linked list of the run-to-completion query states.

These are query states with a reply

Referenced by mesh_new_client(), and mesh_state_delete().

double linked list of the query states that can be jostled out by new queries if too old.

These are query states with a reply

Referenced by mesh_new_client(), and mesh_state_delete().

struct timeval mesh_area::jostle_max [read]

timeout for jostling.

if age is lower, it does not get jostled.

Referenced by mesh_create(), and mesh_make_new_space().


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

Generated on Thu Mar 26 09:45:03 2009 for unbound by  doxygen 1.5.8