aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/hostlist-server.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-01-10 23:40:03 +0000
committerChristian Grothoff <christian@grothoff.org>2010-01-10 23:40:03 +0000
commit69710b875141c1c2cc2eacd4221356d6e457b8c6 (patch)
tree6aaad2985b8057b1eee505ebe4b511037b4a810f /src/hostlist/hostlist-server.c
parent85c435c57b151d4949288572ba964f5c98f67989 (diff)
downloadgnunet-69710b875141c1c2cc2eacd4221356d6e457b8c6.tar.gz
gnunet-69710b875141c1c2cc2eacd4221356d6e457b8c6.zip
working on hostlist
Diffstat (limited to 'src/hostlist/hostlist-server.c')
-rw-r--r--src/hostlist/hostlist-server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c
index 38e144a9d..b15fdc408 100644
--- a/src/hostlist/hostlist-server.c
+++ b/src/hostlist/hostlist-server.c
@@ -144,6 +144,9 @@ update_response (void *cls,
144 GNUNET_TIME_UNIT_MINUTES, 144 GNUNET_TIME_UNIT_MINUTES,
145 &host_processor, 145 &host_processor,
146 results); 146 results);
147 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
148 _("Created new hostlist response with %u bytes\n"),
149 results->size);
147} 150}
148 151
149 152
@@ -174,6 +177,8 @@ access_handler_callback (void *cls,
174 177
175 if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) 178 if (0 != strcmp (method, MHD_HTTP_METHOD_GET))
176 return MHD_NO; 179 return MHD_NO;
180 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
181 _("Received request for our hostlist\n"));
177 if (NULL == *con_cls) 182 if (NULL == *con_cls)
178 { 183 {
179 (*con_cls) = &dummy; 184 (*con_cls) = &dummy;
@@ -282,6 +287,9 @@ GNUNET_HOSTLIST_server_start (const struct GNUNET_CONFIGURATION_Handle *c,
282 "HTTPPORT", 287 "HTTPPORT",
283 &port)) 288 &port))
284 return GNUNET_SYSERR; 289 return GNUNET_SYSERR;
290 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
291 _("Hostlist service starts on port %llu\n"),
292 port);
285 daemon_handle = MHD_start_daemon (MHD_USE_IPv6, 293 daemon_handle = MHD_start_daemon (MHD_USE_IPv6,
286 (unsigned short) port, 294 (unsigned short) port,
287 &accept_policy_callback, 295 &accept_policy_callback,