Electroneum
libworker Struct Reference

#include <libworker.h>

Collaboration diagram for libworker:

Public Attributes

int thread_num
 
struct ub_ctxctx
 
int is_bg
 
int is_bg_thread
 
int want_quit
 
struct module_envenv
 
struct comm_basebase
 
struct outside_networkback
 
struct ub_randstate * rndstate
 
void * sslctx
 

Detailed Description

The library-worker status structure Internal to the worker.

Definition at line 68 of file libworker.h.

Member Data Documentation

◆ back

struct outside_network* libworker::back

the backside outside network interface to the auth servers

Definition at line 86 of file libworker.h.

◆ base

struct comm_base* libworker::base

the event base this worker works with

Definition at line 84 of file libworker.h.

◆ ctx

struct ub_ctx* libworker::ctx

context we are operating under

Definition at line 72 of file libworker.h.

◆ env

struct module_env* libworker::env

copy of the module environment with worker local entries.

Definition at line 82 of file libworker.h.

◆ is_bg

int libworker::is_bg

is this the bg worker?

Definition at line 75 of file libworker.h.

◆ is_bg_thread

int libworker::is_bg_thread

is this a bg worker that is threaded (not forked)?

Definition at line 77 of file libworker.h.

◆ rndstate

struct ub_randstate* libworker::rndstate

random() table for this worker.

Definition at line 88 of file libworker.h.

◆ sslctx

void* libworker::sslctx

sslcontext for SSL wrapped DNS over TCP queries

Definition at line 90 of file libworker.h.

◆ thread_num

int libworker::thread_num

every worker has a unique thread_num. (first in struct)

Definition at line 70 of file libworker.h.

◆ want_quit

int libworker::want_quit

want to quit, stop handling new content

Definition at line 79 of file libworker.h.


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