diff options
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist_client.c')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist_client.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_client.c b/src/hostlist/gnunet-daemon-hostlist_client.c index b377f2041..44966d3de 100644 --- a/src/hostlist/gnunet-daemon-hostlist_client.c +++ b/src/hostlist/gnunet-daemon-hostlist_client.c | |||
@@ -83,7 +83,7 @@ | |||
83 | #define HOSTLIST_SUCCESSFUL_DOWNLOAD 100 | 83 | #define HOSTLIST_SUCCESSFUL_DOWNLOAD 100 |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Value added for each valid HELLO recived during a hostlist download | 86 | * Value added for each valid HELLO received during a hostlist download |
87 | */ | 87 | */ |
88 | #define HOSTLIST_SUCCESSFUL_HELLO 1 | 88 | #define HOSTLIST_SUCCESSFUL_HELLO 1 |
89 | 89 | ||
@@ -111,7 +111,7 @@ struct Hostlist | |||
111 | /** | 111 | /** |
112 | * Value describing the quality of the hostlist, the bigger the better but (should) never < 0 | 112 | * Value describing the quality of the hostlist, the bigger the better but (should) never < 0 |
113 | * used for deciding which hostlist is replaced if MAX_NUMBER_HOSTLISTS in data structure is reached | 113 | * used for deciding which hostlist is replaced if MAX_NUMBER_HOSTLISTS in data structure is reached |
114 | * intial value = HOSTLIST_INITIAL | 114 | * initial value = HOSTLIST_INITIAL |
115 | * increased every successful download by HOSTLIST_SUCCESSFULL_DOWNLOAD | 115 | * increased every successful download by HOSTLIST_SUCCESSFULL_DOWNLOAD |
116 | * increased every successful download by number of obtained HELLO messages | 116 | * increased every successful download by number of obtained HELLO messages |
117 | * decreased every failed download by HOSTLIST_SUCCESSFULL_DOWNLOAD | 117 | * decreased every failed download by HOSTLIST_SUCCESSFULL_DOWNLOAD |
@@ -119,7 +119,7 @@ struct Hostlist | |||
119 | uint64_t quality; | 119 | uint64_t quality; |
120 | 120 | ||
121 | /** | 121 | /** |
122 | * Time the hostlist advertisement was recieved and the entry was created | 122 | * Time the hostlist advertisement was received and the entry was created |
123 | */ | 123 | */ |
124 | struct GNUNET_TIME_Absolute time_creation; | 124 | struct GNUNET_TIME_Absolute time_creation; |
125 | 125 | ||
@@ -211,7 +211,7 @@ static struct GNUNET_SCHEDULER_Task *ti_check_download; | |||
211 | static struct GNUNET_SCHEDULER_Task *ti_download; | 211 | static struct GNUNET_SCHEDULER_Task *ti_download; |
212 | 212 | ||
213 | /** | 213 | /** |
214 | * ID of the task saving the hostlsit in a regular intervall | 214 | * ID of the task saving the hostlsit in a regular interval |
215 | */ | 215 | */ |
216 | static struct GNUNET_SCHEDULER_Task *ti_saving_task; | 216 | static struct GNUNET_SCHEDULER_Task *ti_saving_task; |
217 | 217 | ||
@@ -246,7 +246,7 @@ static struct Hostlist *linked_list_tail; | |||
246 | static struct Hostlist *current_hostlist; | 246 | static struct Hostlist *current_hostlist; |
247 | 247 | ||
248 | /** | 248 | /** |
249 | * Size of the linke list used to store hostlists | 249 | * Size of the linked list used to store hostlists |
250 | */ | 250 | */ |
251 | static unsigned int linked_list_size; | 251 | static unsigned int linked_list_size; |
252 | 252 | ||
@@ -1098,7 +1098,7 @@ task_download_dispatcher (void *cls) | |||
1098 | else | 1098 | else |
1099 | { | 1099 | { |
1100 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1100 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1101 | "Download in progess, have to wait...\n"); | 1101 | "Download in progress, have to wait...\n"); |
1102 | ti_download_dispatcher_task = | 1102 | ti_download_dispatcher_task = |
1103 | GNUNET_SCHEDULER_add_delayed (WAITING_INTERVAL, | 1103 | GNUNET_SCHEDULER_add_delayed (WAITING_INTERVAL, |
1104 | &task_download_dispatcher, | 1104 | &task_download_dispatcher, |
@@ -1160,7 +1160,7 @@ task_check (void *cls) | |||
1160 | 1160 | ||
1161 | 1161 | ||
1162 | /** | 1162 | /** |
1163 | * This tasks sets hostlist testing to allowed after intervall between to testings is reached | 1163 | * This tasks sets hostlist testing to allowed after interval between to testings is reached |
1164 | * | 1164 | * |
1165 | * @param cls closure | 1165 | * @param cls closure |
1166 | */ | 1166 | */ |
@@ -1249,7 +1249,7 @@ handler_advertisement (const char *uri) | |||
1249 | 1249 | ||
1250 | uri_size = strlen (uri) + 1; | 1250 | uri_size = strlen (uri) + 1; |
1251 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1251 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1252 | "Hostlist client recieved advertisement containing URI `%s'\n", | 1252 | "Hostlist client received advertisement containing URI `%s'\n", |
1253 | uri); | 1253 | uri); |
1254 | if (GNUNET_NO != linked_list_contains (uri)) | 1254 | if (GNUNET_NO != linked_list_contains (uri)) |
1255 | { | 1255 | { |
@@ -1440,7 +1440,7 @@ load_hostlist_file () | |||
1440 | GNUNET_CONTAINER_DLL_insert (linked_list_head, linked_list_tail, hostlist); | 1440 | GNUNET_CONTAINER_DLL_insert (linked_list_head, linked_list_tail, hostlist); |
1441 | linked_list_size++; | 1441 | linked_list_size++; |
1442 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1442 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1443 | "Added hostlist entry eith URI `%s' \n", | 1443 | "Added hostlist entry with URI `%s' \n", |
1444 | hostlist->hostlist_uri); | 1444 | hostlist->hostlist_uri); |
1445 | GNUNET_free (uri); | 1445 | GNUNET_free (uri); |
1446 | uri = NULL; | 1446 | uri = NULL; |