worker Struct Reference

Structure holding working information for unbound. More...

#include <worker.h>

Data Fields

int thread_num
 the thread number (in daemon array).
struct daemondaemon
 global shared daemon structure
ub_thread_t thr_id
 thread id
struct tubecmd
 pipe, for commands for this worker
struct comm_basebase
 the event base this worker works with
struct listen_dnsportfront
 the frontside listening interface where request events come in
struct outside_networkback
 the backside outside network interface to the auth servers
int * ports
 ports to be used by this worker.
int numports
 number of ports for this worker
struct comm_signalcomsig
 the signal handler
struct comm_pointcmd_com
 commpoint to listen to commands.
struct comm_timerstat_timer
 timer for statistics
size_t request_size
 number of requests that can be handled by this worker
struct ub_randstaterndstate
 random() table for this worker.
int need_to_exit
 do we need to restart or quit (on signal)
struct alloc_cache alloc
 allocation cache for this thread
struct server_stats stats
 per thread statistics
struct regionalscratchpad
 thread scratch regional
struct module_env env
 module environment passed to modules, changed for this thread

Detailed Description

Structure holding working information for unbound.

Holds globally visible information.


Field Documentation

the thread number (in daemon array).

First in struct for debug.

Referenced by do_dump_requestlist(), thread_start(), worker_create(), worker_delete(), worker_init(), and worker_stat_timer_cb().

ports to be used by this worker.

Referenced by worker_create(), worker_delete(), and worker_init().

commpoint to listen to commands.

random() table for this worker.

Referenced by worker_delete(), and worker_init().


The documentation for this struct was generated from the following file:
Generated on Thu Apr 22 00:30:20 2010 for unbound by  doxygen 1.6.3