Data Structures | Functions
worker_cb.c File Reference

This file contains fake callback functions, so that the symbols exist and the fptr_wlist continues to work even if the daemon/worker is not linked into the resulting program. More...

#include "config.h"
#include "util/log.h"
#include "services/mesh.h"

Data Structures

struct  order_id
 keep track of lock id in lock-verify application More...

Functions

void worker_handle_control_cmd (struct tube *tube, uint8_t *buffer, size_t len, int error, void *arg)
 process control messages from the main thread.
int worker_handle_request (struct comm_point *c, void *arg, int error, struct comm_reply *repinfo)
 handles callbacks from listening event interface
int worker_handle_reply (struct comm_point *c, void *arg, int error, struct comm_reply *reply_info)
 process incoming replies from the network
int worker_handle_service_reply (struct comm_point *c, void *arg, int error, struct comm_reply *reply_info)
 process incoming serviced query replies from the network
int remote_accept_callback (struct comm_point *c, void *arg, int error, struct comm_reply *repinfo)
 handle remote control accept callbacks
int remote_control_callback (struct comm_point *c, void *arg, int error, struct comm_reply *repinfo)
 handle remote control data callbacks
void worker_sighandler (int sig, void *arg)
 Worker signal handler function.
struct outbound_entryworker_send_query (uint8_t *qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, uint16_t flags, int dnssec, int want_dnssec, struct sockaddr_storage *addr, socklen_t addrlen, struct module_qstate *q)
void worker_alloc_cleanup (void *arg)
 cleanup the cache to remove all rrset IDs from it, arg is worker
struct outbound_entrylibworker_send_query (uint8_t *qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, uint16_t flags, int dnssec, int want_dnssec, struct sockaddr_storage *addr, socklen_t addrlen, struct module_qstate *q)
int libworker_handle_reply (struct comm_point *c, void *arg, int error, struct comm_reply *reply_info)
 process incoming replies from the network
int libworker_handle_service_reply (struct comm_point *c, void *arg, int error, struct comm_reply *reply_info)
 process incoming serviced query replies from the network
void libworker_handle_control_cmd (struct tube *tube, uint8_t *buffer, size_t len, int error, void *arg)
 handle control command coming into server
void libworker_fg_done_cb (void *arg, int rcode, ldns_buffer *buf, enum sec_status s, char *why_bogus)
 mesh callback with fg results
void libworker_bg_done_cb (void *arg, int rcode, ldns_buffer *buf, enum sec_status s, char *why_bogus)
 mesh callback with bg results
int context_query_cmp (const void *a, const void *b)
 compare two ctx_query elements
void worker_stat_timer_cb (void *arg)
 statistics timer callback handler
void worker_probe_timer_cb (void *arg)
 probe timer callback handler
int order_lock_cmp (const void *e1, const void *e2)
 Due to module breakage by fptr wlist, these test app declarations are presented here.
int codeline_cmp (const void *a, const void *b)
 compare two codeline structs for rbtree from memstats test app
int replay_var_compare (const void *a, const void *b)
 compare two replay_vars
void remote_get_opt_ssl (char *str, void *arg)
 routine to printout option values over SSL

Detailed Description

This file contains fake callback functions, so that the symbols exist and the fptr_wlist continues to work even if the daemon/worker is not linked into the resulting program.


Function Documentation

void worker_handle_control_cmd ( struct tube tube,
uint8_t *  msg,
size_t  len,
int  error,
void *  arg 
)

process control messages from the main thread.

Frees the control command message.

Parameters:
tube,:tube control message came on.
msg,:message contents. Is freed.
len,:length of message.
error,:if error (NETEVENT_*) happened.
arg,:user argument

References worker::cmd, NETEVENT_NOERROR, NETEVENT_CLOSED, comm_base_exit(), worker::base, log_info(), fatal_exit(), worker_cmd_quit, verbose(), VERB_ALGO, worker_cmd_stats, server_stats_reply(), worker_cmd_stats_noreset, worker_cmd_remote, daemon_remote_exec(), log_err(), and log_assert.

void worker_sighandler ( int  sig,
void *  arg 
)

Worker signal handler function.

User argument is the worker itself.

Parameters:
sig,:signal number.
arg,:the worker (main worker) that handles signals.

References verbose(), VERB_QUERY, comm_base_exit(), worker::base, worker::need_to_exit, log_err(), and log_assert.

int order_lock_cmp ( const void *  e1,
const void *  e2 
)

Due to module breakage by fptr wlist, these test app declarations are presented here.

compare two order_ids from lock-verify test app

Parameters:
e1,:first order_id
e2,:second order_id
Returns:
compare code -1, 0, +1 (like memcmp).

References log_assert, order_id::thr, and order_id::instance.

int codeline_cmp ( const void *  a,
const void *  b 
)

compare two codeline structs for rbtree from memstats test app

Parameters:
a,:codeline
b,:codeline
Returns:
compare code -1, 0, +1 (like memcmp).

References log_assert.