aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_to_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r--src/transport/transport_api_address_to_string.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c
index 96b321dea..932085f8c 100644
--- a/src/transport/transport_api_address_to_string.c
+++ b/src/transport/transport_api_address_to_string.c
@@ -104,6 +104,9 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
104 104
105 if (GNUNET_NO == result) 105 if (GNUNET_NO == result)
106 { 106 {
107 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Client %p failed to resolve address \n",
108 alucb->client);
109
107 alucb->cb (alucb->cb_cls, empty_str, GNUNET_SYSERR); 110 alucb->cb (alucb->cb_cls, empty_str, GNUNET_SYSERR);
108 111
109 /* expect more replies */ 112 /* expect more replies */
@@ -127,15 +130,7 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
127 /* expect more replies */ 130 /* expect more replies */
128 GNUNET_CLIENT_receive (alucb->client, &address_response_processor, alucb, 131 GNUNET_CLIENT_receive (alucb->client, &address_response_processor, alucb,
129 GNUNET_TIME_absolute_get_remaining (alucb->timeout)); 132 GNUNET_TIME_absolute_get_remaining (alucb->timeout));
130 133 alucb->cb (alucb->cb_cls, address, GNUNET_OK);
131 if (GNUNET_NO == result)
132 {
133 alucb->cb (alucb->cb_cls, empty_str, GNUNET_SYSERR);
134 }
135 else
136 {
137 alucb->cb (alucb->cb_cls, address, GNUNET_OK);
138 }
139} 134}
140 135
141 136
@@ -180,6 +175,9 @@ GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle
180 client = GNUNET_CLIENT_connect ("transport", cfg); 175 client = GNUNET_CLIENT_connect ("transport", cfg);
181 if (NULL == client) 176 if (NULL == client)
182 return NULL; 177 return NULL;
178 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Client %p tries to resolve for peer `%s'address len %u \n",
179 client, GNUNET_i2s (&address->peer), address->address_length);
180
183 msg = GNUNET_malloc (len); 181 msg = GNUNET_malloc (len);
184 msg->header.size = htons (len); 182 msg->header.size = htons (len);
185 msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING); 183 msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING);