This file contains the interface for DNS handling modules. More...
#include "util/storage/lruhash.h"
#include "util/data/msgreply.h"
#include "util/data/msgparse.h"
Data Structures | |
struct | module_env |
Module environment. More... | |
struct | sock_list |
Linked list of sockaddrs May be allocated such that only 'len' bytes of addr exist for the structure. More... | |
struct | module_qstate |
Module state, per query. More... | |
struct | module_func_block |
Module functionality block. More... | |
Defines | |
#define | MAX_MODULE 5 |
Maximum number of modules in operation. | |
Enumerations | |
enum | module_ext_state { module_state_initial = 0, module_wait_reply, module_wait_module, module_restart_next, module_wait_subquery, module_error, module_finished } |
External visible states of the module state machine Modules may also have an internal state. More... | |
enum | module_ev { module_event_new = 0, module_event_pass, module_event_reply, module_event_noreply, module_event_capsfail, module_event_moddone, module_event_error } |
Events that happen to modules, that start or wakeup modules. More... | |
Functions | |
const char * | strextstate (enum module_ext_state s) |
Debug utility: module external qstate to string. | |
const char * | strmodulevent (enum module_ev e) |
Debug utility: module event to string. |
This file contains the interface for DNS handling modules.
enum module_ext_state |
External visible states of the module state machine Modules may also have an internal state.
Modules are supposed to run to completion or until blocked.
enum module_ev |
Events that happen to modules, that start or wakeup modules.
const char* strextstate | ( | enum module_ext_state | s | ) |
Debug utility: module external qstate to string.
s,: | the state value. |
References module_error, module_finished, module_restart_next, module_state_initial, module_wait_module, module_wait_reply, and module_wait_subquery.
Referenced by get_mesh_status(), iter_operate(), mesh_run(), and val_operate().
const char* strmodulevent | ( | enum module_ev | e | ) |
Debug utility: module event to string.
e,: | the module event value. |
References module_event_capsfail, module_event_error, module_event_moddone, module_event_new, module_event_noreply, module_event_pass, and module_event_reply.
Referenced by iter_operate(), pythonmod_operate(), and val_operate().