diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-05 10:20:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-05 10:20:33 +0000 |
commit | 54227c4878ea1c20ed0b2719d773e6d55ea3ae69 (patch) | |
tree | 7576c70a4ea9ef7d4f049ccb65dc6639f29f1c6f /src/util/resolver_api.c | |
parent | b86e160bf26efd69b4bd2b973ee712a846d83f0f (diff) | |
download | gnunet-54227c4878ea1c20ed0b2719d773e6d55ea3ae69.tar.gz gnunet-54227c4878ea1c20ed0b2719d773e6d55ea3ae69.zip |
fix
Diffstat (limited to 'src/util/resolver_api.c')
-rw-r--r-- | src/util/resolver_api.c | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index 2b8997fac..b86e5c666 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c | |||
@@ -124,6 +124,10 @@ check_config (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
124 | 124 | ||
125 | /** | 125 | /** |
126 | * Convert IP address to string without DNS resolution. | 126 | * Convert IP address to string without DNS resolution. |
127 | * | ||
128 | * @param sa the address | ||
129 | * @param salen number of bytes in sa | ||
130 | * @return address as a string, NULL on error | ||
127 | */ | 131 | */ |
128 | static char * | 132 | static char * |
129 | no_resolve (const struct sockaddr *sa, socklen_t salen) | 133 | no_resolve (const struct sockaddr *sa, socklen_t salen) |
@@ -160,6 +164,12 @@ no_resolve (const struct sockaddr *sa, socklen_t salen) | |||
160 | } | 164 | } |
161 | 165 | ||
162 | 166 | ||
167 | /** | ||
168 | * FIXME | ||
169 | * | ||
170 | * @param cls FIXME | ||
171 | * @param msg FIXME | ||
172 | */ | ||
163 | static void | 173 | static void |
164 | handle_address_response (void *cls, const struct GNUNET_MessageHeader *msg) | 174 | handle_address_response (void *cls, const struct GNUNET_MessageHeader *msg) |
165 | { | 175 | { |
@@ -224,6 +234,14 @@ handle_address_response (void *cls, const struct GNUNET_MessageHeader *msg) | |||
224 | } | 234 | } |
225 | 235 | ||
226 | 236 | ||
237 | /** | ||
238 | * FIXME | ||
239 | * | ||
240 | * @param cls FIXME | ||
241 | * @param size number of bytes available in buf | ||
242 | * @param buf target buffer, NULL on error | ||
243 | * @return number of bytes written to buf | ||
244 | */ | ||
227 | static size_t | 245 | static size_t |
228 | transmit_get_ip (void *cls, size_t size, void *buf) | 246 | transmit_get_ip (void *cls, size_t size, void *buf) |
229 | { | 247 | { |
@@ -396,16 +414,45 @@ GNUNET_RESOLVER_ip_get (struct GNUNET_SCHEDULER_Handle *sched, | |||
396 | } | 414 | } |
397 | 415 | ||
398 | 416 | ||
417 | /** | ||
418 | * FIXME. | ||
419 | */ | ||
399 | struct GetHostnameContext | 420 | struct GetHostnameContext |
400 | { | 421 | { |
422 | |||
423 | /** | ||
424 | * FIXME. | ||
425 | */ | ||
401 | GNUNET_RESOLVER_HostnameCallback callback; | 426 | GNUNET_RESOLVER_HostnameCallback callback; |
427 | |||
428 | /** | ||
429 | * FIXME. | ||
430 | */ | ||
402 | void *cls; | 431 | void *cls; |
432 | |||
433 | /** | ||
434 | * FIXME. | ||
435 | */ | ||
403 | struct GNUNET_RESOLVER_GetMessage *msg; | 436 | struct GNUNET_RESOLVER_GetMessage *msg; |
437 | |||
438 | /** | ||
439 | * FIXME. | ||
440 | */ | ||
404 | struct GNUNET_CLIENT_Connection *client; | 441 | struct GNUNET_CLIENT_Connection *client; |
442 | |||
443 | /** | ||
444 | * FIXME. | ||
445 | */ | ||
405 | struct GNUNET_TIME_Absolute timeout; | 446 | struct GNUNET_TIME_Absolute timeout; |
406 | }; | 447 | }; |
407 | 448 | ||
408 | 449 | ||
450 | /** | ||
451 | * FIXME. | ||
452 | * | ||
453 | * @param cls FIXME | ||
454 | * @param msg FIXME | ||
455 | */ | ||
409 | static void | 456 | static void |
410 | handle_hostname_response (void *cls, const struct GNUNET_MessageHeader *msg) | 457 | handle_hostname_response (void *cls, const struct GNUNET_MessageHeader *msg) |
411 | { | 458 | { |
@@ -455,6 +502,14 @@ handle_hostname_response (void *cls, const struct GNUNET_MessageHeader *msg) | |||
455 | } | 502 | } |
456 | 503 | ||
457 | 504 | ||
505 | /** | ||
506 | * FIXME | ||
507 | * | ||
508 | * @param cls FIXME | ||
509 | * @param size number of bytes available in buf | ||
510 | * @param buf target buffer, NULL on error | ||
511 | * @return number of bytes written to buf | ||
512 | */ | ||
458 | static size_t | 513 | static size_t |
459 | transmit_get_hostname (void *cls, size_t size, void *buf) | 514 | transmit_get_hostname (void *cls, size_t size, void *buf) |
460 | { | 515 | { |