aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2011-07-26 12:39:23 +0000
committerNathan S. Evans <evans@in.tum.de>2011-07-26 12:39:23 +0000
commit66e9353163686f84163816a7fee09209ce522fcb (patch)
tree2776423670bd69f4f21ef0e6e39af340585ed99b /src/nse
parente8bc36209dd09c9720c6ea8657e4f49c35c08956 (diff)
downloadgnunet-66e9353163686f84163816a7fee09209ce522fcb.tar.gz
gnunet-66e9353163686f84163816a7fee09209ce522fcb.zip
load hosts from file, implementation in testing
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/nse-profiler.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nse/nse-profiler.c b/src/nse/nse-profiler.c
index 8d90ca260..3194979a5 100644
--- a/src/nse/nse-profiler.c
+++ b/src/nse/nse-profiler.c
@@ -580,6 +580,7 @@ run (void *cls,
580{ 580{
581 char *temp_str; 581 char *temp_str;
582 unsigned long long temp_wait; 582 unsigned long long temp_wait;
583 struct GNUNET_TESTING_Host *hosts;
583 584
584 ok = 1; 585 ok = 1;
585 testing_cfg = GNUNET_CONFIGURATION_create(); 586 testing_cfg = GNUNET_CONFIGURATION_create();
@@ -673,12 +674,14 @@ run (void *cls,
673 } 674 }
674 GNUNET_free_non_null(temp_str); 675 GNUNET_free_non_null(temp_str);
675 676
677 hosts = GNUNET_TESTING_hosts_load (testing_cfg);
678
676 pg = GNUNET_TESTING_peergroup_start(testing_cfg, 679 pg = GNUNET_TESTING_peergroup_start(testing_cfg,
677 num_peers, 680 num_peers,
678 TIMEOUT, 681 TIMEOUT,
679 &connect_cb, 682 &connect_cb,
680 &my_cb, NULL, 683 &my_cb, NULL,
681 NULL); 684 hosts);
682 GNUNET_assert (pg != NULL); 685 GNUNET_assert (pg != NULL);
683 shutdown_handle = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_get_forever(), 686 shutdown_handle = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_get_forever(),
684 &shutdown_task, 687 &shutdown_task,