gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r22479 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r22479 - gnunet/src/mesh
Date: Wed, 4 Jul 2012 16:03:03 +0200

Author: bartpolot
Date: 2012-07-04 16:03:03 +0200 (Wed, 04 Jul 2012)
New Revision: 22479

Modified:
   gnunet/src/mesh/gnunet-service-mesh_new.c
   gnunet/src/mesh/test_mesh_regex.c
Log:
- more debug messages, tweaked parameters for testing

Modified: gnunet/src/mesh/gnunet-service-mesh_new.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_new.c   2012-07-04 13:54:43 UTC (rev 
22478)
+++ gnunet/src/mesh/gnunet-service-mesh_new.c   2012-07-04 14:03:03 UTC (rev 
22479)
@@ -60,11 +60,11 @@
                                     300)
 #define APP_ANNOUNCE_TIME       GNUNET_TIME_relative_multiply(\
                                     GNUNET_TIME_UNIT_SECONDS,\
-                                    5)
+                                    15)
 
 #define ID_ANNOUNCE_TIME        GNUNET_TIME_relative_multiply(\
                                     GNUNET_TIME_UNIT_SECONDS,\
-                                    5)
+                                    15)
 
 #define UNACKNOWLEDGED_WAIT     GNUNET_TIME_relative_multiply(\
                                     GNUNET_TIME_UNIT_SECONDS,\
@@ -4228,9 +4228,7 @@
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "DHT GET STRING RETURNED RESULTS\n");
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "  key: %s\n");
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "DHT GET STRING RETURNED RESULTS\n");
+              "  key: %s\n", GNUNET_h2s (key));
   proof = (char *) &block[1];
   if (GNUNET_OK != GNUNET_REGEX_check_proof (proof, key))
   {
@@ -5019,8 +5017,10 @@
   const char *string;
   size_t size;
   size_t len;
-
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connect by string started\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              
"************************************************************\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Connect by string started\n");
   msg = (struct GNUNET_MESH_ConnectPeerByString *) message;
   size = htons (message->size);
 
@@ -5073,6 +5073,13 @@
 
   /* Initialize context */
   size = GNUNET_REGEX_get_first_key(string, len, &key);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              
"************************************************************\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "  consumed %u bits out of %u\n", size, len);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "  looking for %s\n", GNUNET_h2s (&key));
+
   ctx = GNUNET_malloc (sizeof (struct MeshRegexSearchContext));
   ctx->position = size;
   ctx->t = t;

Modified: gnunet/src/mesh/test_mesh_regex.c
===================================================================
--- gnunet/src/mesh/test_mesh_regex.c   2012-07-04 13:54:43 UTC (rev 22478)
+++ gnunet/src/mesh/test_mesh_regex.c   2012-07-04 14:03:03 UTC (rev 22479)
@@ -373,8 +373,12 @@
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
               
"************************************************************\n");
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-              "Create tunnel & connect by string\n");
+              "Create tunnel\n");
   t = GNUNET_MESH_tunnel_create (h1, NULL, &ch, &dh, NULL);
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+              
"************************************************************\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+              "Connect by string\n");
   GNUNET_MESH_peer_request_connect_by_string (t, "abc");
   /* connect handler = success, timeout = error */
   




reply via email to

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