unbound 0.1
replay_runtime Struct Reference

Replay storage of runtime information. More...

#include <replay.h>

Data Fields

struct replay_scenario * scenario
 The scenario.
struct replay_moment * now
 Current moment.
struct fake_pending * pending_list
 List of pending queries in order they were sent out.
struct replay_answer * answer_list
 List of answers to queries from clients.
struct replay_answer * answer_last
 last element in answer list.
struct fake_timer * timer_list
 list of fake timer callbacks that are pending
comm_point_callback_type * callback_query
 callback to call for incoming queries
void * cb_arg
 user argument for incoming query callback
struct infra_cache * infra
 ref the infra cache (was passed to outside_network_create)
struct daemon * daemon
 the daemon structure passed in worker call to remote accept open
time_t now_secs
 the current time in seconds
struct timeval now_tv
 the current time in microseconds
int tcp_seen_keepalive
 has TCP connection seen a keepalive?
void(*) sig_cb (int, void *)
 signal handler callback
void * sig_cb_arg
 signal handler user arg
int exit_cleanly
 time to exit cleanly
size_t bufsize
 size of buffers
rbtree_type * vars
 Tree of macro values.

Detailed Description

Replay storage of runtime information.

Field Documentation

◆ scenario

struct replay_scenario* replay_runtime::scenario

◆ now

◆ pending_list

struct fake_pending* replay_runtime::pending_list

List of pending queries in order they were sent out.

First one has been sent out most recently. Last one in list is oldest.

Referenced by comm_base_delete(), expon_timeout_backoff(), fake_pending_callback(), outnet_serviced_query_stop(), pending_list_delete(), pending_list_delete_pkt(), pending_matches_current(), pending_matches_range(), pending_tcp_query(), pending_udp_query(), and run_scenario().

◆ answer_list

struct replay_answer* replay_runtime::answer_list

List of answers to queries from clients.

These need to be checked.

Referenced by answer_check_it(), comm_base_delete(), comm_point_send_reply(), do_moment_and_advance(), and run_scenario().

◆ answer_last

struct replay_answer* replay_runtime::answer_last

last element in answer list.

Referenced by answer_check_it(), and comm_point_send_reply().

◆ timer_list

struct fake_timer* replay_runtime::timer_list

list of fake timer callbacks that are pending

Referenced by comm_base_delete(), comm_timer_create(), comm_timer_delete(), and first_timer().

◆ callback_query

comm_point_callback_type* replay_runtime::callback_query

callback to call for incoming queries

Referenced by fake_front_query().

◆ cb_arg

void* replay_runtime::cb_arg

user argument for incoming query callback

Referenced by comm_signal_create(), and fake_front_query().

◆ infra

struct infra_cache* replay_runtime::infra

ref the infra cache (was passed to outside_network_create)

Referenced by do_infra_rtt(), and expon_timeout_backoff().

◆ daemon

struct daemon* replay_runtime::daemon

the daemon structure passed in worker call to remote accept open

Referenced by do_expire_message(), and do_flush_message().

◆ now_secs

time_t replay_runtime::now_secs

◆ now_tv

struct timeval replay_runtime::now_tv

the current time in microseconds

Referenced by comm_base_timept(), comm_timer_set(), replay_get_oldest_timer(), and time_passes().

◆ tcp_seen_keepalive

int replay_runtime::tcp_seen_keepalive

has TCP connection seen a keepalive?

Referenced by answer_callback_from_entry(), answer_check_it(), fake_front_query(), and fake_pending_callback().

◆ sig_cb

void(*) replay_runtime::sig_cb(int, void *)

signal handler callback

Referenced by comm_base_dispatch(), and comm_signal_create().

◆ sig_cb_arg

void* replay_runtime::sig_cb_arg

signal handler user arg

Referenced by comm_base_dispatch(), and comm_signal_create().

◆ exit_cleanly

int replay_runtime::exit_cleanly

time to exit cleanly

Referenced by comm_base_exit(), and run_scenario().

◆ bufsize

size_t replay_runtime::bufsize

◆ vars

rbtree_type* replay_runtime::vars

Tree of macro values.

Of type replay_var

Referenced by autotrust_check(), comm_base_delete(), moment_assign(), tempfile_check(), and time_passes().


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