gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r7652 - GNUnet/src/applications/testing


From: gnunet
Subject: [GNUnet-SVN] r7652 - GNUnet/src/applications/testing
Date: Tue, 2 Sep 2008 15:22:24 -0600 (MDT)

Author: nevans
Date: 2008-09-02 15:22:23 -0600 (Tue, 02 Sep 2008)
New Revision: 7652

Modified:
   GNUnet/src/applications/testing/remotetopologies.c
Log:


Modified: GNUnet/src/applications/testing/remotetopologies.c
===================================================================
--- GNUnet/src/applications/testing/remotetopologies.c  2008-09-01 07:21:05 UTC 
(rev 7651)
+++ GNUnet/src/applications/testing/remotetopologies.c  2008-09-02 21:22:23 UTC 
(rev 7652)
@@ -25,6 +25,8 @@
  */
 #include "remote.h"
 
+#define DEBUG GNUNET_YES
+
 static int
 printInfo (void *data,
            const GNUNET_PeerIdentity *
@@ -340,16 +342,23 @@
   GNUNET_snprintf (host, 128, "%s:%u", hostname1, port1);
   GNUNET_GC_set_configuration_value_string (cfg1, NULL, "NETWORK", "HOST",
                                             host);
-
+  if(DEBUG == GNUNET_YES)
+  {
+    fprintf(stderr,"Setting config 1 to host %s\n",host);
+  }
   GNUNET_snprintf (host, 128, "%s:%u", hostname2, port2);
   GNUNET_GC_set_configuration_value_string (cfg2, NULL, "NETWORK", "HOST",
-                                            host);
+  
+  if(DEBUG == GNUNET_YES)
+  {
+    fprintf(stderr,"Setting config 2 to host %s\n",host);
+  }                                          
 
   if ((GNUNET_OK ==
-       GNUNET_wait_for_daemon_running (NULL, cfg1, 300 * GNUNET_CRON_SECONDS))
+       GNUNET_wait_for_daemon_running (NULL, cfg1, 30 * GNUNET_CRON_SECONDS))
       && (GNUNET_OK ==
           GNUNET_wait_for_daemon_running (NULL, cfg2,
-                                          300 * GNUNET_CRON_SECONDS)))
+                                          30 * GNUNET_CRON_SECONDS)))
     {
       sock1 = GNUNET_client_connection_create (NULL, cfg1);
       sock2 = GNUNET_client_connection_create (NULL, cfg2);
@@ -447,10 +456,10 @@
                                             host);
 
   if ((GNUNET_OK ==
-       GNUNET_wait_for_daemon_running (NULL, cfg1, 300 * GNUNET_CRON_SECONDS))
+       GNUNET_wait_for_daemon_running (NULL, cfg1, 30 * GNUNET_CRON_SECONDS))
       && (GNUNET_OK ==
           GNUNET_wait_for_daemon_running (NULL, cfg2,
-                                          300 * GNUNET_CRON_SECONDS)))
+                                          30 * GNUNET_CRON_SECONDS)))
     {
       sock1 = GNUNET_client_connection_create (NULL, cfg1);
       sock2 = GNUNET_client_connection_create (NULL, cfg2);





reply via email to

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