Electroneum
worker Struct Reference

#include <worker.h>

Collaboration diagram for worker:

Public Attributes

int thread_num
 
struct daemondaemon
 
ub_thread_type thr_id
 
struct tubecmd
 
struct comm_basebase
 
struct listen_dnsportfront
 
struct outside_networkback
 
int * ports
 
int numports
 
struct comm_signalcomsig
 
struct comm_pointcmd_com
 
struct comm_timerstat_timer
 
time_t err_limit_time
 
unsigned int err_limit_count
 
struct ub_randstate * rndstate
 
int need_to_exit
 
struct alloc_cache alloc
 
struct ub_server_stats stats
 
struct regionalscratchpad
 
struct module_env env
 

Detailed Description

Structure holding working information for unbound. Holds globally visible information.

Definition at line 82 of file worker.h.

Member Data Documentation

◆ alloc

struct alloc_cache worker::alloc

allocation cache for this thread

Definition at line 117 of file worker.h.

◆ back

struct outside_network* worker::back

the backside outside network interface to the auth servers

Definition at line 96 of file worker.h.

◆ base

struct comm_base* worker::base

the event base this worker works with

Definition at line 92 of file worker.h.

◆ cmd

struct tube* worker::cmd

pipe, for commands for this worker

Definition at line 90 of file worker.h.

◆ cmd_com

struct comm_point* worker::cmd_com

commpoint to listen to commands.

Definition at line 104 of file worker.h.

◆ comsig

struct comm_signal* worker::comsig

the signal handler

Definition at line 102 of file worker.h.

◆ daemon

struct daemon* worker::daemon

global shared daemon structure

Definition at line 86 of file worker.h.

◆ env

struct module_env worker::env

module environment passed to modules, changed for this thread

Definition at line 124 of file worker.h.

◆ err_limit_count

unsigned int worker::err_limit_count

ratelimit for errors, packet count

Definition at line 110 of file worker.h.

◆ err_limit_time

time_t worker::err_limit_time

ratelimit for errors, time value

Definition at line 108 of file worker.h.

◆ front

struct listen_dnsport* worker::front

the frontside listening interface where request events come in

Definition at line 94 of file worker.h.

◆ need_to_exit

int worker::need_to_exit

do we need to restart or quit (on signal)

Definition at line 115 of file worker.h.

◆ numports

int worker::numports

number of ports for this worker

Definition at line 100 of file worker.h.

◆ ports

int* worker::ports

ports to be used by this worker.

Definition at line 98 of file worker.h.

◆ rndstate

struct ub_randstate* worker::rndstate

random() table for this worker.

Definition at line 113 of file worker.h.

◆ scratchpad

struct regional* worker::scratchpad

thread scratch regional

Definition at line 121 of file worker.h.

◆ stat_timer

struct comm_timer* worker::stat_timer

timer for statistics

Definition at line 106 of file worker.h.

◆ stats

struct ub_server_stats worker::stats

per thread statistics

Definition at line 119 of file worker.h.

◆ thr_id

ub_thread_type worker::thr_id

thread id

Definition at line 88 of file worker.h.

◆ thread_num

int worker::thread_num

the thread number (in daemon array). First in struct for debug.

Definition at line 84 of file worker.h.


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