fixes
authorChristian Grothoff <christian@grothoff.org>
Sun, 26 Jul 2009 21:25:54 +0000 (21:25 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 26 Jul 2009 21:25:54 +0000 (21:25 +0000)
src/core/test_core_api.c
src/core/test_core_api_start_only.c
src/include/gnunet_testing_lib.h
src/transport/plugin_transport_tcp.c
src/transport/test_transport_api.c

index 89aa9b13eb9e651d491777212c76164d898fe65b..935c004cc981ec65e1cbca01a91cdb5297ecae19 100644 (file)
@@ -48,7 +48,7 @@
 
 struct PeerContext
 {
-  const struct GNUNET_CONFIGURATION_Handle *cfg;
+  struct GNUNET_CONFIGURATION_Handle *cfg;
   struct GNUNET_CORE_Handle *ch;
   struct GNUNET_PeerIdentity id;   
   struct GNUNET_TRANSPORT_Handle *th;
index f1993325c24783210ee494e04aaf6a60e7d91b90..62550f0ec851846f9c6ea69abb621f4c1b5b4f4d 100644 (file)
@@ -45,7 +45,7 @@
 
 struct PeerContext
 {
-  const struct GNUNET_CONFIGURATION_Handle *cfg;
+  struct GNUNET_CONFIGURATION_Handle *cfg;
   struct GNUNET_CORE_Handle *ch;
   struct GNUNET_PeerIdentity id;
 #if START_ARM
index 3a18a17c3b04b20d7ac46fc41bb81fdcce783b6d..560a25355e2e404e722a30c32a5f12fc675850f8 100644 (file)
@@ -58,6 +58,7 @@ struct GNUNET_TESTING_Daemon;
  *
  * @param cls closure
  * @param id identifier for the daemon, NULL on error
+ * @param cfg configuration used by this daemon
  * @param d handle for the daemon
  * @param emsg error message (NULL on success)
  */
@@ -127,7 +128,7 @@ void GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d,
  * @param cb_cls closure for cb
  */
 void GNUNET_TESTING_daemon_reconfigure (struct GNUNET_TESTING_Daemon *d,
-                                       struct GNUNET_CONFIGURATION_Handle *cfg,
+                                       const struct GNUNET_CONFIGURATION_Handle *cfg,
                                        GNUNET_TESTING_NotifyCompletion cb,
                                        void * cb_cls);
 
@@ -150,20 +151,15 @@ void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1,
                                     void *cb_cls);
 
 
-
 /**
- * Start count gnunetd processes with the same set of
- * transports and applications.  The port numbers will
- * be computed by adding delta each time (zero
- * times for the first peer).
+ * Start count gnunetd processes with the same set of transports and
+ * applications.  The port numbers (any option called "PORT") will be
+ * adjusted to ensure that no two peers running on the same system
+ * have the same port(s) in their respective configurations.
  *
  * @param sched scheduler to use 
- * @param cfg configuration to use
+ * @param cfg configuration template to use
  * @param total number of daemons to start
- * @param service_home_prefix path to use as the prefix for the home of the services;
- *        a number will be added for the different peers
- * @param transports which transports should all peers use
- * @param applications which applications should be used?
  * @param cb function to call on each daemon that was started
  * @param cb_cls closure for cb
  * @param cbe function to call at the end
@@ -176,11 +172,8 @@ void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1,
  */
 void
 GNUNET_TESTING_daemons_start_va (struct GNUNET_SCHEDULER_Handle *sched,
-                                struct GNUNET_CONFIGURATION_Handle *cfg,
+                                const struct GNUNET_CONFIGURATION_Handle *cfg,
                                 unsigned int total,
-                                const char *service_home_prefix,
-                                const char *transports,
-                                const char *applications,
                                 GNUNET_TESTING_NotifyDaemonRunning cb,
                                 void *cb_cls,
                                 GNUNET_TESTING_NotifyCompletion cbe,
@@ -188,6 +181,7 @@ GNUNET_TESTING_daemons_start_va (struct GNUNET_SCHEDULER_Handle *sched,
                                 const char *hostname,
                                 va_list va);
 
+
 /**
  * Start count gnunetd processes with the same set of
  * transports and applications.  The port numbers will
index 76d980621822482a11f379ac1f1767d745368450..7585e26e898012ac5b937873a17d0dcb0dc1b584 100644 (file)
@@ -39,7 +39,7 @@
 #include "plugin_transport.h"
 #include "transport.h"
 
-#define DEBUG_TCP GNUNET_YES
+#define DEBUG_TCP GNUNET_NO
 
 /**
  * After how long do we expire an address that we
index f96710c38c4644245548729934039620c07a2268..ae4ba3c76b8481eac69c68e20ae6fb872b57f614 100644 (file)
@@ -44,7 +44,7 @@
 
 struct PeerContext
 {
-  const struct GNUNET_CONFIGURATION_Handle *cfg;
+  struct GNUNET_CONFIGURATION_Handle *cfg;
   struct GNUNET_TRANSPORT_Handle *th;
   struct GNUNET_PeerIdentity id;
 #if START_ARM