diff options
Diffstat (limited to 'src/transport/transport_api_address_lookup.c')
-rw-r--r-- | src/transport/transport_api_address_lookup.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/transport/transport_api_address_lookup.c b/src/transport/transport_api_address_lookup.c index da723d71c..cb15f0565 100644 --- a/src/transport/transport_api_address_lookup.c +++ b/src/transport/transport_api_address_lookup.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | /** | 30 | /** |
31 | * Context for the address lookup. | 31 | * Context for the address lookup. |
32 | */ | 32 | */ |
33 | struct AddressLookupCtx | 33 | struct AddressLookupCtx |
34 | { | 34 | { |
35 | /** | 35 | /** |
@@ -62,7 +62,7 @@ struct AddressLookupCtx | |||
62 | * message with the human-readable address | 62 | * message with the human-readable address |
63 | */ | 63 | */ |
64 | static void | 64 | static void |
65 | address_response_processor (void *cls, | 65 | address_response_processor (void *cls, |
66 | const struct GNUNET_MessageHeader *msg) | 66 | const struct GNUNET_MessageHeader *msg) |
67 | { | 67 | { |
68 | struct AddressLookupCtx *alucb = cls; | 68 | struct AddressLookupCtx *alucb = cls; |
@@ -100,7 +100,7 @@ address_response_processor (void *cls, | |||
100 | GNUNET_CLIENT_receive (alucb->client, | 100 | GNUNET_CLIENT_receive (alucb->client, |
101 | &address_response_processor, alucb, | 101 | &address_response_processor, alucb, |
102 | GNUNET_TIME_absolute_get_remaining | 102 | GNUNET_TIME_absolute_get_remaining |
103 | (alucb->timeout)); | 103 | (alucb->timeout)); |
104 | alucb->cb (alucb->cb_cls, address); | 104 | alucb->cb (alucb->cb_cls, address); |
105 | } | 105 | } |
106 | 106 | ||
@@ -112,7 +112,7 @@ address_response_processor (void *cls, | |||
112 | * @param cfg configuration to use | 112 | * @param cfg configuration to use |
113 | * @param address address to convert (binary format) | 113 | * @param address address to convert (binary format) |
114 | * @param addressLen number of bytes in address | 114 | * @param addressLen number of bytes in address |
115 | * @param numeric should (IP) addresses be displayed in numeric form | 115 | * @param numeric should (IP) addresses be displayed in numeric form |
116 | * (otherwise do reverse DNS lookup) | 116 | * (otherwise do reverse DNS lookup) |
117 | * @param nameTrans name of the transport to which the address belongs | 117 | * @param nameTrans name of the transport to which the address belongs |
118 | * @param timeout how long is the lookup allowed to take at most | 118 | * @param timeout how long is the lookup allowed to take at most |
@@ -121,8 +121,8 @@ address_response_processor (void *cls, | |||
121 | */ | 121 | */ |
122 | void | 122 | void |
123 | GNUNET_TRANSPORT_address_lookup (struct GNUNET_SCHEDULER_Handle *sched, | 123 | GNUNET_TRANSPORT_address_lookup (struct GNUNET_SCHEDULER_Handle *sched, |
124 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 124 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
125 | const char *address, | 125 | const char *address, |
126 | size_t addressLen, | 126 | size_t addressLen, |
127 | int numeric, | 127 | int numeric, |
128 | const char *nameTrans, | 128 | const char *nameTrans, |
@@ -168,8 +168,8 @@ GNUNET_TRANSPORT_address_lookup (struct GNUNET_SCHEDULER_Handle *sched, | |||
168 | aluCB->timeout = abs_timeout; | 168 | aluCB->timeout = abs_timeout; |
169 | aluCB->client = client; | 169 | aluCB->client = client; |
170 | GNUNET_assert (GNUNET_OK == | 170 | GNUNET_assert (GNUNET_OK == |
171 | GNUNET_CLIENT_transmit_and_get_response (client, | 171 | GNUNET_CLIENT_transmit_and_get_response (client, |
172 | &msg->header, | 172 | &msg->header, |
173 | timeout, | 173 | timeout, |
174 | GNUNET_YES, | 174 | GNUNET_YES, |
175 | &address_response_processor, | 175 | &address_response_processor, |