Handle to a peer that advertised that it is willing to serve as a DNS exit. More...
Data Fields | |
struct CadetExit * | next |
Kept in a DLL. More... | |
struct CadetExit * | prev |
Kept in a DLL. More... | |
struct GNUNET_CADET_Channel * | cadet_channel |
Channel we use for DNS requests over CADET, NULL if we did not initialize a channel to this peer yet. More... | |
struct GNUNET_TIME_Absolute | expiration |
At what time did the peer's advertisement expire? More... | |
struct RequestContext * | receive_queue_head |
Head of DLL of requests waiting for a response. More... | |
struct RequestContext * | receive_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... | |
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 125 of file gnunet-daemon-pt.c.
struct CadetExit* CadetExit::next |
Kept in a DLL.
Definition at line 130 of file gnunet-daemon-pt.c.
Referenced by choose_exit(), handle_dht_result(), and try_open_exit().
struct CadetExit* CadetExit::prev |
Kept in a DLL.
Definition at line 135 of file gnunet-daemon-pt.c.
struct GNUNET_CADET_Channel* CadetExit::cadet_channel |
Channel we use for DNS requests over CADET, NULL if we did not initialize a channel to this peer yet.
Definition at line 141 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().
struct GNUNET_TIME_Absolute CadetExit::expiration |
At what time did the peer's advertisement expire?
Definition at line 146 of file gnunet-daemon-pt.c.
Referenced by handle_dht_result().
struct RequestContext* CadetExit::receive_queue_head |
Head of DLL of requests waiting for a response.
Definition at line 151 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().
struct RequestContext* CadetExit::receive_queue_tail |
Tail of DLL of requests waiting for a response.
Definition at line 156 of file gnunet-daemon-pt.c.
Referenced by abort_all_requests(), cadet_channel_end_cb(), dns_pre_request_handler(), and handle_dns_response().
struct GNUNET_PeerIdentity CadetExit::peer |
Identity of the peer that is providing the exit for us.
Definition at line 161 of file gnunet-daemon-pt.c.
Referenced by handle_dht_result(), and try_open_exit().
unsigned int CadetExit::num_transmitted |
How many DNS requests did we transmit via this channel?
Definition at line 166 of file gnunet-daemon-pt.c.
Referenced by dns_pre_request_handler(), get_channel_weight(), and timeout_request().
unsigned int CadetExit::num_answered |
How many DNS requests were answered via this channel?
Definition at line 171 of file gnunet-daemon-pt.c.
Referenced by get_channel_weight(), handle_dns_response(), and timeout_request().
int CadetExit::idle |
Size of the window, 0 if we are busy.
Definition at line 176 of file gnunet-daemon-pt.c.
Referenced by channel_idle_notify_cb(), choose_exit(), and dns_pre_request_handler().