gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12983 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r12983 - gnunet/src/transport
Date: Tue, 14 Sep 2010 13:10:39 +0200

Author: wachs
Date: 2010-09-14 13:10:39 +0200 (Tue, 14 Sep 2010)
New Revision: 12983

Modified:
   gnunet/src/transport/test_transport_api_reliability.c
Log:


Modified: gnunet/src/transport/test_transport_api_reliability.c
===================================================================
--- gnunet/src/transport/test_transport_api_reliability.c       2010-09-14 
10:46:48 UTC (rev 12982)
+++ gnunet/src/transport/test_transport_api_reliability.c       2010-09-14 
11:10:39 UTC (rev 12983)
@@ -100,6 +100,7 @@
 
 static int msg_scheduled;
 static int msg_sent;
+static int msg_recv_expected;
 static int msg_recv;
 
 
@@ -153,7 +154,7 @@
           const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                 "Reliability failed: \nLast message scheduled %u of %u \nLast 
message sent %u \nLast message received %u \n ", msg_scheduled, TOTAL_MSGS, 
msg_sent, msg_recv);
+                 "Reliability failed: \nLast message sent %u \nNext message 
scheduled %u\nLast message received %u\nMessage expected %u \n ", msg_sent, 
msg_scheduled, msg_recv, msg_recv_expected);
   GNUNET_break (0);
   GNUNET_TRANSPORT_disconnect (p1.th);
   GNUNET_TRANSPORT_disconnect (p2.th);
@@ -196,7 +197,8 @@
   s = get_size (n);
   if (MTYPE != ntohs (message->type))
     return;
-  msg_recv++;
+  msg_recv_expected = n;
+  msg_recv = ntohl(hdr->num);
   if (ntohs (message->size) != s)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]