gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r2217 - GNUnet/src/applications/pingpong


From: durner
Subject: [GNUnet-SVN] r2217 - GNUnet/src/applications/pingpong
Date: Fri, 28 Oct 2005 13:17:57 -0700 (PDT)

Author: durner
Date: 2005-10-28 13:17:53 -0700 (Fri, 28 Oct 2005)
New Revision: 2217

Modified:
   GNUnet/src/applications/pingpong/pingpong.c
Log:
debug

Modified: GNUnet/src/applications/pingpong/pingpong.c
===================================================================
--- GNUnet/src/applications/pingpong/pingpong.c 2005-10-27 19:36:09 UTC (rev 
2216)
+++ GNUnet/src/applications/pingpong/pingpong.c 2005-10-28 20:17:53 UTC (rev 
2217)
@@ -130,6 +130,14 @@
        _("Received ping for another peer. Dropping.\n"));
     return SYSERR; /* not for us */
   }
+
+#if DEBUG_PINGPONG  
+  EncName enc;
+
+  hash2enc(&sender->hashPubKey, &enc);
+  LOG(LOG_DEBUG, "Received ping from peer %s.\n", &enc);
+#endif
+  
   pmsg->header.type = htons(p2p_PROTO_PONG);
   if (stats != NULL)
     stats->change(stat_pingReceived, 1);
@@ -179,6 +187,14 @@
        _("Received PING not destined for us!\n"));
     return SYSERR; /* not for us */
   }
+
+#if DEBUG_PINGPONG  
+  EncName enc;
+
+  hash2enc(&sender->hashPubKey, &enc);
+  LOG(LOG_DEBUG, "Received plaintext ping from peer %s.\n", &enc);
+#endif
+  
   pmsg->header.type = htons(p2p_PROTO_PONG);
   /* allow using a different transport for sending the reply, the
      transport may have been uni-directional! */
@@ -300,7 +316,7 @@
   hash2enc(&sender->hashPubKey,
           &enc);
   LOG(LOG_DEBUG,
-      "Received PONG from `%s' matched %u peers.\n",
+      "Received plaintext PONG from `%s' matched %u peers.\n",
       &enc,
       matched);
 #endif





reply via email to

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