unbound 0.1
waiting_tcp Struct Reference

Query waiting for TCP buffer. More...

#include <outside_network.h>

Data Fields

struct waiting_tcp * next_waiting
 next in waiting list.
int on_tcp_waiting_list
 if true the item is on the tcp waiting list and next_waiting is used for that.
struct waiting_tcp * write_wait_prev
 next and prev in query waiting list for stream connection
struct waiting_tcp * write_wait_next
int write_wait_queued
 true if the waiting_tcp structure is on the write_wait queue
rbnode_type id_node
 entry in reuse.tree_by_id, if key is NULL, not in tree, otherwise, this struct is key and sorted by ID (from waiting_tcp.id).
uint16_t id
 the ID for the query; checked in reply
struct comm_timer * timer
 timeout event; timer keeps running whether the query is waiting for a buffer or the tcp reply is pending
int timeout
 timeout in msec
struct outside_network * outnet
 the outside network it is part of
struct sockaddr_storage addr
 remote address.
socklen_t addrlen
 length of addr field in use.
uint8_t * pkt
 The query itself, the query packet to send.
size_t pkt_len
 length of query packet.
comm_point_callback_type * cb
 callback for the timeout, error or reply to the message, or NULL if no user is waiting.
void * cb_arg
 callback user argument
int ssl_upstream
 if it uses ssl upstream
char * tls_auth_name
 owned copy of the tls_auth_name (malloced)
int error_count
 the packet was involved in an error, to stop looping errors
int in_cb_and_decommission
 if true, the item is at the cb_and_decommission stage

Detailed Description

Query waiting for TCP buffer.

Field Documentation

◆ next_waiting

◆ on_tcp_waiting_list

int waiting_tcp::on_tcp_waiting_list

◆ write_wait_prev

struct waiting_tcp* waiting_tcp::write_wait_prev

◆ write_wait_queued

◆ id_node

rbnode_type waiting_tcp::id_node

entry in reuse.tree_by_id, if key is NULL, not in tree, otherwise, this struct is key and sorted by ID (from waiting_tcp.id).

Referenced by outnet_tcp_cb(), pending_tcp_query(), reuse_tcp_by_id_find(), reuse_tree_by_id_delete(), and reuse_tree_by_id_insert().

◆ id

uint16_t waiting_tcp::id

◆ timer

struct comm_timer* waiting_tcp::timer

timeout event; timer keeps running whether the query is waiting for a buffer or the tcp reply is pending

Referenced by outnet_tcp_take_query_setup(), outnet_waiting_tcp_list_add(), outnet_waiting_tcp_list_add_first(), pending_tcp_query(), use_free_buffer(), waiting_tcp_delete(), and waiting_tcp_get_mem().

◆ timeout

◆ outnet

◆ addr

struct sockaddr_storage waiting_tcp::addr

◆ addrlen

socklen_t waiting_tcp::addrlen

length of addr field in use.

Referenced by outnet_tcp_take_into_use(), pending_tcp_query(), pick_outgoing_tcp(), and use_free_buffer().

◆ pkt

uint8_t* waiting_tcp::pkt

The query itself, the query packet to send.

allocated after the waiting_tcp structure.

Referenced by outnet_tcp_cb(), outnet_tcp_take_into_use(), outnet_tcp_take_query_setup(), pending_tcp_query(), reuse_move_writewait_away(), and use_free_buffer().

◆ pkt_len

◆ cb

comm_point_callback_type* waiting_tcp::cb

callback for the timeout, error or reply to the message, or NULL if no user is waiting.

the entry uses an ID number. a query that was written is no longer needed, but the ID number and a reply will come back and can be ignored if NULL

Referenced by mark_for_cb_and_decommission(), pending_tcp_query(), reuse_tcp_remove_serviced_keep(), serviced_delete(), and waiting_tcp_callback().

◆ cb_arg

void* waiting_tcp::cb_arg

callback user argument

Referenced by mark_for_cb_and_decommission(), pending_tcp_query(), and waiting_tcp_callback().

◆ ssl_upstream

int waiting_tcp::ssl_upstream

if it uses ssl upstream

Referenced by outnet_tcp_take_into_use(), pending_tcp_query(), and use_free_buffer().

◆ tls_auth_name

char* waiting_tcp::tls_auth_name

owned copy of the tls_auth_name (malloced)

Referenced by outnet_tcp_take_into_use(), pending_tcp_query(), use_free_buffer(), and waiting_tcp_delete().

◆ error_count

int waiting_tcp::error_count

the packet was involved in an error, to stop looping errors

Referenced by pending_tcp_query(), and reuse_move_writewait_away().

◆ in_cb_and_decommission

int waiting_tcp::in_cb_and_decommission

if true, the item is at the cb_and_decommission stage

Referenced by mark_for_cb_and_decommission(), pending_tcp_query(), and serviced_delete().


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