aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_lookup.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-18 14:21:35 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-18 14:21:35 +0000
commita451a2586010ed439a381e2621f29b7c3e197fcf (patch)
treea1a17a568d9f1cbe3f2859ea815464e6e098ecff /src/transport/transport_api_address_lookup.c
parent17660cb999353673f4a04cf37611d47f41672df3 (diff)
downloadgnunet-a451a2586010ed439a381e2621f29b7c3e197fcf.tar.gz
gnunet-a451a2586010ed439a381e2621f29b7c3e197fcf.zip
update
Diffstat (limited to 'src/transport/transport_api_address_lookup.c')
-rw-r--r--src/transport/transport_api_address_lookup.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/transport/transport_api_address_lookup.c b/src/transport/transport_api_address_lookup.c
index bf0b37442..4293b18f8 100644
--- a/src/transport/transport_api_address_lookup.c
+++ b/src/transport/transport_api_address_lookup.c
@@ -70,10 +70,26 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
70 } 70 }
71} 71}
72 72
73/**
74 * Convert a binary address into a human readable address.
75 *
76 * @param sched scheduler to use
77 * @param cfg configuration to use
78 * @param address address to convert (binary format)
79 * @param addressLen number of bytes in address
80 * @param numeric should (IP) addresses be displayed in numeric form
81 * (otherwise do reverse DNS lookup)
82 * @param nameTrans name of the transport to which the address belongs
83 * @param timeout how long is the lookup allowed to take at most
84 * @param aluc function to call with the results
85 * @param aluc_cls closure for aluc
86 */
73void 87void
74GNUNET_TRANSPORT_address_lookup (struct GNUNET_SCHEDULER_Handle *sched, 88GNUNET_TRANSPORT_address_lookup (struct GNUNET_SCHEDULER_Handle *sched,
75 const struct GNUNET_CONFIGURATION_Handle 89 const struct GNUNET_CONFIGURATION_Handle *cfg,
76 *cfg, const char *address, size_t addressLen, 90 const char *address,
91 size_t addressLen,
92 int numeric,
77 const char *nameTrans, 93 const char *nameTrans,
78 struct GNUNET_TIME_Relative timeout, 94 struct GNUNET_TIME_Relative timeout,
79 GNUNET_TRANSPORT_AddressLookUpCallback aluc, 95 GNUNET_TRANSPORT_AddressLookUpCallback aluc,