aboutsummaryrefslogtreecommitdiff
path: root/src/dv/dv_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dv/dv_api.c')
-rw-r--r--src/dv/dv_api.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c
index ecc13941b..cd12a0a21 100644
--- a/src/dv/dv_api.c
+++ b/src/dv/dv_api.c
@@ -267,6 +267,9 @@ process_ack (void *cls,
267 267
268 if (th->uid != ntohl (ctx->ack->uid)) 268 if (th->uid != ntohl (ctx->ack->uid))
269 return GNUNET_OK; 269 return GNUNET_OK;
270 LOG (GNUNET_ERROR_TYPE_DEBUG,
271 "Matchedk ACK for message to peer %s\n",
272 GNUNET_h2s (key));
270 GNUNET_assert (GNUNET_YES == 273 GNUNET_assert (GNUNET_YES ==
271 GNUNET_CONTAINER_multihashmap_remove (ctx->sh->send_callbacks, 274 GNUNET_CONTAINER_multihashmap_remove (ctx->sh->send_callbacks,
272 key, 275 key,
@@ -306,6 +309,9 @@ handle_message_receipt (void *cls,
306 reconnect (sh); 309 reconnect (sh);
307 return; 310 return;
308 } 311 }
312 LOG (GNUNET_ERROR_TYPE_DEBUG,
313 "Received message of type %u from DV service\n",
314 (unsigned int) msg->type);
309 switch (ntohs (msg->type)) 315 switch (ntohs (msg->type))
310 { 316 {
311 case GNUNET_MESSAGE_TYPE_DV_CONNECT: 317 case GNUNET_MESSAGE_TYPE_DV_CONNECT:
@@ -472,6 +478,8 @@ reconnect (struct GNUNET_DV_ServiceHandle *sh)
472 GNUNET_CONTAINER_multihashmap_iterate (sh->send_callbacks, 478 GNUNET_CONTAINER_multihashmap_iterate (sh->send_callbacks,
473 &cleanup_send_cb, 479 &cleanup_send_cb,
474 sh); 480 sh);
481 LOG (GNUNET_ERROR_TYPE_DEBUG,
482 "Connecting to DV service\n");
475 sh->client = GNUNET_CLIENT_connect ("dv", sh->cfg); 483 sh->client = GNUNET_CLIENT_connect ("dv", sh->cfg);
476 if (NULL == sh->client) 484 if (NULL == sh->client)
477 { 485 {
@@ -583,6 +591,12 @@ GNUNET_DV_send (struct GNUNET_DV_ServiceHandle *sh,
583 GNUNET_break (0); 591 GNUNET_break (0);
584 return NULL; 592 return NULL;
585 } 593 }
594 LOG (GNUNET_ERROR_TYPE_DEBUG,
595 "Asked to send %u bytes of type %u to %s\n",
596 (unsigned int) msg->size,
597 (unsigned int) msg->type,
598 GNUNET_i2s (target));
599
586 th = GNUNET_malloc (sizeof (struct GNUNET_DV_TransmitHandle) + 600 th = GNUNET_malloc (sizeof (struct GNUNET_DV_TransmitHandle) +
587 sizeof (struct GNUNET_DV_SendMessage) + 601 sizeof (struct GNUNET_DV_SendMessage) +
588 ntohs (msg->size)); 602 ntohs (msg->size));