Electroneum
pending Struct Reference

#include <outside_network.h>

Collaboration diagram for pending:

Public Attributes

rbnode_type node
 
unsigned int id
 
struct sockaddr_storage addr
 
socklen_t addrlen
 
struct port_commpc
 
struct comm_timertimer
 
comm_point_callback_typecb
 
void * cb_arg
 
struct outside_networkoutnet
 
struct serviced_querysq
 
struct pendingnext_waiting
 
int timeout
 
uint8_tpkt
 
size_t pkt_len
 

Detailed Description

A query that has an answer pending for it.

Definition at line 211 of file outside_network.h.

Member Data Documentation

◆ addr

struct sockaddr_storage pending::addr

remote address.

Definition at line 219 of file outside_network.h.

◆ addrlen

socklen_t pending::addrlen

length of addr field in use.

Definition at line 221 of file outside_network.h.

◆ cb

callback for the timeout, error or reply to the message

Definition at line 227 of file outside_network.h.

◆ cb_arg

void* pending::cb_arg

callback user argument

Definition at line 229 of file outside_network.h.

◆ id

unsigned int pending::id

the ID for the query. int so that a value out of range can be used to signify a pending that is for certain not present in the rbtree. (and for which deletion is safe).

Definition at line 217 of file outside_network.h.

◆ next_waiting

struct pending* pending::next_waiting

next in waiting list.

Definition at line 237 of file outside_network.h.

◆ node

rbnode_type pending::node

redblacktree entry, key is the pending struct(id, addr).

Definition at line 213 of file outside_network.h.

◆ outnet

struct outside_network* pending::outnet

the outside network it is part of

Definition at line 231 of file outside_network.h.

◆ pc

struct port_comm* pending::pc

comm point it was sent on (and reply must come back on).

Definition at line 223 of file outside_network.h.

◆ pkt

uint8_t* pending::pkt

The query itself, the query packet to send.

Definition at line 241 of file outside_network.h.

◆ pkt_len

size_t pending::pkt_len

length of query packet.

Definition at line 243 of file outside_network.h.

◆ sq

struct serviced_query* pending::sq

the corresponding serviced_query

Definition at line 233 of file outside_network.h.

◆ timeout

int pending::timeout

timeout in msec

Definition at line 239 of file outside_network.h.

◆ timer

struct comm_timer* pending::timer

timeout event

Definition at line 225 of file outside_network.h.


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