aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_channel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-07-21 00:15:17 +0000
committerBart Polot <bart@net.in.tum.de>2014-07-21 00:15:17 +0000
commit44f4ff24833e8fcdf0f880c7b84e572e03844ad9 (patch)
tree7a878ec63cfa3b9df971f06191236cac6383b691 /src/cadet/gnunet-service-cadet_channel.c
parent1026c03fbcf8b02f80e698e80665523cfd5e8f2f (diff)
downloadgnunet-44f4ff24833e8fcdf0f880c7b84e572e03844ad9.tar.gz
gnunet-44f4ff24833e8fcdf0f880c7b84e572e03844ad9.zip
- more debug info on received ACK, doxygen
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.c')
-rw-r--r--src/cadet/gnunet-service-cadet_channel.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c
index f1c1f05e1..f7d2ed860 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -305,6 +305,7 @@ extern GNUNET_PEER_Id myid;
305/******************************** STATIC ***********************************/ 305/******************************** STATIC ***********************************/
306/******************************************************************************/ 306/******************************************************************************/
307 307
308
308/** 309/**
309 * Destroy a reliable message after it has been acknowledged, either by 310 * Destroy a reliable message after it has been acknowledged, either by
310 * direct mid ACK or bitfield. Updates the appropriate data structures and 311 * direct mid ACK or bitfield. Updates the appropriate data structures and
@@ -315,6 +316,9 @@ extern GNUNET_PEER_Id myid;
315 * If this message is ACK in a batch the timing information 316 * If this message is ACK in a batch the timing information
316 * is skewed by the retransmission, count only for the 317 * is skewed by the retransmission, count only for the
317 * retransmitted message. 318 * retransmitted message.
319 *
320 * @return #GNUNET_YES if channel was destroyed as a result of the call,
321 * #GNUNET_NO otherwise.
318 */ 322 */
319static int 323static int
320rel_message_free (struct CadetReliableMessage *copy, int update_time); 324rel_message_free (struct CadetReliableMessage *copy, int update_time);
@@ -2011,7 +2015,8 @@ GCCH_handle_data_ack (struct CadetChannel *ch,
2011 } 2015 }
2012 2016
2013 ack = ntohl (msg->mid); 2017 ack = ntohl (msg->mid);
2014 LOG (GNUNET_ERROR_TYPE_INFO, "<=== %s ACK %u\n", GC_f2s (fwd), ack); 2018 LOG (GNUNET_ERROR_TYPE_INFO, "<=== %s ACK %u + %X\n",
2019 GC_f2s (fwd), ack, msg->futures);
2015 2020
2016 if (GNUNET_YES == fwd) 2021 if (GNUNET_YES == fwd)
2017 { 2022 {