GNUnet  0.11.x
Data Fields
CadetExit Struct Reference

Handle to a peer that advertised that it is willing to serve as a DNS exit. More...

Collaboration diagram for CadetExit:
[legend]

Data Fields

struct CadetExitnext
 Kept in a DLL. More...
 
struct CadetExitprev
 Kept in a DLL. More...
 
struct GNUNET_CADET_Channelcadet_channel
 Channel we use for DNS requests over CADET, NULL if we did not initialze a channel to this peer yet. More...
 
struct GNUNET_TIME_Absolute expiration
 At what time did the peer's advertisement expire? More...
 
struct RequestContextreceive_queue_head
 Head of DLL of requests waiting for a response. More...
 
struct RequestContextreceive_queue_tail
 Tail of DLL of requests waiting for a response. More...
 
struct GNUNET_PeerIdentity peer
 Identity of the peer that is providing the exit for us. More...
 
unsigned int num_transmitted
 How many DNS requests did we transmit via this channel? More...
 
unsigned int num_answered
 How many DNS requests were answered via this channel? More...
 
int idle
 Size of the window, 0 if we are busy. More...
 

Detailed Description

Handle to a peer that advertised that it is willing to serve as a DNS exit.

We try to keep a few channels open and a few peers in reserve.

Definition at line 127 of file gnunet-daemon-pt.c.

Field Documentation

◆ next

struct CadetExit* CadetExit::next

Kept in a DLL.

Definition at line 132 of file gnunet-daemon-pt.c.

Referenced by choose_exit(), handle_dht_result(), and try_open_exit().

◆ prev

struct CadetExit* CadetExit::prev

Kept in a DLL.

Definition at line 137 of file gnunet-daemon-pt.c.

◆ cadet_channel

struct GNUNET_CADET_Channel* CadetExit::cadet_channel

Channel we use for DNS requests over CADET, NULL if we did not initialze a channel to this peer yet.

Definition at line 143 of file gnunet-daemon-pt.c.

Referenced by cadet_channel_end_cb(), choose_exit(), cleanup(), dns_pre_request_handler(), timeout_request(), and try_open_exit().

◆ expiration

struct GNUNET_TIME_Absolute CadetExit::expiration

At what time did the peer's advertisement expire?

Definition at line 148 of file gnunet-daemon-pt.c.

Referenced by handle_dht_result().

◆ receive_queue_head

struct RequestContext* CadetExit::receive_queue_head

Head of DLL of requests waiting for a response.

Definition at line 153 of file gnunet-daemon-pt.c.

Referenced by abort_all_requests(), cadet_channel_end_cb(), dns_pre_request_handler(), handle_dns_response(), and timeout_request().

◆ receive_queue_tail

struct RequestContext* CadetExit::receive_queue_tail

Tail of DLL of requests waiting for a response.

Definition at line 158 of file gnunet-daemon-pt.c.

Referenced by abort_all_requests(), cadet_channel_end_cb(), dns_pre_request_handler(), and handle_dns_response().

◆ peer

struct GNUNET_PeerIdentity CadetExit::peer

Identity of the peer that is providing the exit for us.

Definition at line 163 of file gnunet-daemon-pt.c.

Referenced by handle_dht_result(), and try_open_exit().

◆ num_transmitted

unsigned int CadetExit::num_transmitted

How many DNS requests did we transmit via this channel?

Definition at line 168 of file gnunet-daemon-pt.c.

Referenced by dns_pre_request_handler(), get_channel_weight(), and timeout_request().

◆ num_answered

unsigned int CadetExit::num_answered

How many DNS requests were answered via this channel?

Definition at line 173 of file gnunet-daemon-pt.c.

Referenced by get_channel_weight(), handle_dns_response(), and timeout_request().

◆ idle

int CadetExit::idle

Size of the window, 0 if we are busy.

Definition at line 178 of file gnunet-daemon-pt.c.

Referenced by channel_idle_notify_cb(), choose_exit(), and dns_pre_request_handler().


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