A single hostlist obtained by hostlist advertisements. More...
Data Fields | |
struct Hostlist * | prev |
previous entry, used to manage entries in a double linked list More... | |
struct Hostlist * | next |
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 initial 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 received 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... | |
A single hostlist obtained by hostlist advertisements.
Definition at line 93 of file gnunet-daemon-hostlist_client.c.
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.
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().
const char* Hostlist::hostlist_uri |
URI where hostlist can be obtained.
Definition at line 108 of file gnunet-daemon-hostlist_client.c.
Referenced by clean_up(), download_get_url(), handler_advertisement(), insert_hostlist(), linked_list_contains(), load_hostlist_file(), save_hostlist_file(), and update_hostlist().
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 initial 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().
struct GNUNET_TIME_Absolute Hostlist::time_creation |
Time the hostlist advertisement was received 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().
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().
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().
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().