aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_testing_topology.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-10-12 12:56:49 +0000
committerNathan S. Evans <evans@in.tum.de>2010-10-12 12:56:49 +0000
commitcd1310b601dc1b7d1b14b7cafff92c0e9bb92152 (patch)
treed393ea92910ec0b221dc76dc3211cb26e948dda9 /src/testing/test_testing_topology.c
parent71d1874626c062831968b17473baf4ab2829ebec (diff)
downloadgnunet-cd1310b601dc1b7d1b14b7cafff92c0e9bb92152.tar.gz
gnunet-cd1310b601dc1b7d1b14b7cafff92c0e9bb92152.zip
change connect topology in testing_group.c to call callback on all peers connected (or possibly timed out connecting)
Diffstat (limited to 'src/testing/test_testing_topology.c')
-rw-r--r--src/testing/test_testing_topology.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/testing/test_testing_topology.c b/src/testing/test_testing_topology.c
index 8e28a8372..83c96a451 100644
--- a/src/testing/test_testing_topology.c
+++ b/src/testing/test_testing_topology.c
@@ -706,13 +706,20 @@ topology_callback (void *cls,
706 } 706 }
707} 707}
708 708
709static void topology_creation_finished (void *cls,
710 const char *emsg)
711{
712 if (emsg == NULL)
713 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "All topology connections created successfully!\n");
714}
715
709static void 716static void
710connect_topology () 717connect_topology ()
711{ 718{
712 expected_connections = -1; 719 expected_connections = -1;
713 if ((pg != NULL) && (peers_left == 0)) 720 if ((pg != NULL) && (peers_left == 0))
714 { 721 {
715 expected_connections = GNUNET_TESTING_connect_topology (pg, connection_topology, connect_topology_option, connect_topology_option_modifier); 722 expected_connections = GNUNET_TESTING_connect_topology (pg, connection_topology, connect_topology_option, connect_topology_option_modifier, &topology_creation_finished, NULL);
716#if VERBOSE > 1 723#if VERBOSE > 1
717 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 724 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
718 "Have %d expected connections\n", expected_connections); 725 "Have %d expected connections\n", expected_connections);