GNUnet  0.10.x
Data Fields
Hostlist Struct Reference

A single hostlist obtained by hostlist advertisements. More...

Collaboration diagram for Hostlist:
[legend]

Data Fields

struct Hostlistprev
 previous entry, used to manage entries in a double linked list More...
 
struct Hostlistnext
 next entry, used to manage entries in a double linked list More...
 
const char * hostlist_uri
 URI where hostlist can be obtained. More...
 
uint64_t quality
 Value describing the quality of the hostlist, the bigger the better but (should) never < 0 used for deciding which hostlist is replaced if MAX_NUMBER_HOSTLISTS in data structure is reached intial value = HOSTLIST_INITIAL increased every successful download by HOSTLIST_SUCCESSFULL_DOWNLOAD increased every successful download by number of obtained HELLO messages decreased every failed download by HOSTLIST_SUCCESSFULL_DOWNLOAD. More...
 
struct GNUNET_TIME_Absolute time_creation
 Time the hostlist advertisement was recieved and the entry was created. More...
 
struct GNUNET_TIME_Absolute time_last_usage
 Last time the hostlist was obtained. More...
 
uint32_t hello_count
 Number of HELLO messages obtained during last download. More...
 
uint32_t times_used
 Number of times the hostlist was successfully obtained. More...
 

Detailed Description

A single hostlist obtained by hostlist advertisements.

Definition at line 93 of file gnunet-daemon-hostlist_client.c.

Field Documentation

◆ prev

struct Hostlist* Hostlist::prev

previous entry, used to manage entries in a double linked list

Definition at line 98 of file gnunet-daemon-hostlist_client.c.

◆ next

struct Hostlist* Hostlist::next

next entry, used to manage entries in a double linked list

Definition at line 103 of file gnunet-daemon-hostlist_client.c.

Referenced by download_get_url(), linked_list_contains(), and linked_list_get_lowest_quality().

◆ hostlist_uri

const char* Hostlist::hostlist_uri

◆ quality

uint64_t Hostlist::quality

Value describing the quality of the hostlist, the bigger the better but (should) never < 0 used for deciding which hostlist is replaced if MAX_NUMBER_HOSTLISTS in data structure is reached intial value = HOSTLIST_INITIAL increased every successful download by HOSTLIST_SUCCESSFULL_DOWNLOAD increased every successful download by number of obtained HELLO messages decreased every failed download by HOSTLIST_SUCCESSFULL_DOWNLOAD.

Definition at line 118 of file gnunet-daemon-hostlist_client.c.

Referenced by handler_advertisement(), insert_hostlist(), linked_list_get_lowest_quality(), load_hostlist_file(), save_hostlist_file(), and update_hostlist().

◆ time_creation

struct GNUNET_TIME_Absolute Hostlist::time_creation

Time the hostlist advertisement was recieved and the entry was created.

Definition at line 123 of file gnunet-daemon-hostlist_client.c.

Referenced by handler_advertisement(), load_hostlist_file(), and save_hostlist_file().

◆ time_last_usage

struct GNUNET_TIME_Absolute Hostlist::time_last_usage

Last time the hostlist was obtained.

Definition at line 128 of file gnunet-daemon-hostlist_client.c.

Referenced by load_hostlist_file(), save_hostlist_file(), and update_hostlist().

◆ hello_count

uint32_t Hostlist::hello_count

Number of HELLO messages obtained during last download.

Definition at line 133 of file gnunet-daemon-hostlist_client.c.

Referenced by load_hostlist_file(), save_hostlist_file(), and update_hostlist().

◆ times_used

uint32_t Hostlist::times_used

Number of times the hostlist was successfully obtained.

Definition at line 138 of file gnunet-daemon-hostlist_client.c.

Referenced by load_hostlist_file(), save_hostlist_file(), and update_hostlist().


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