aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-21 10:25:12 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-21 10:25:12 +0000
commitc78f6d6e8ab7af5d4c3912a057d6f67febab07f2 (patch)
tree334613b7280843a55b3fc8912b393159eb789ca7 /src/include/gnunet_testing_lib.h
parent6cf5f9bd46389b714bd32421ea64e670e2e2c5db (diff)
downloadgnunet-c78f6d6e8ab7af5d4c3912a057d6f67febab07f2.tar.gz
gnunet-c78f6d6e8ab7af5d4c3912a057d6f67febab07f2.zip
nitpicks
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r--src/include/gnunet_testing_lib.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h
index d3ab7cb9b..71bf9f961 100644
--- a/src/include/gnunet_testing_lib.h
+++ b/src/include/gnunet_testing_lib.h
@@ -658,7 +658,7 @@ enum GNUNET_TESTING_TopologyOption
658 GNUNET_TESTING_TOPOLOGY_OPTION_NONE 658 GNUNET_TESTING_TOPOLOGY_OPTION_NONE
659}; 659};
660 660
661/* 661/**
662 * Takes a peer group and creates a topology based on the 662 * Takes a peer group and creates a topology based on the
663 * one specified. Creates a topology means generates friend 663 * one specified. Creates a topology means generates friend
664 * files for the peers so they can only connect to those allowed 664 * files for the peers so they can only connect to those allowed
@@ -683,11 +683,20 @@ GNUNET_TESTING_create_topology (struct GNUNET_TESTING_PeerGroup *pg,
683 enum GNUNET_TESTING_Topology restrict_topology, 683 enum GNUNET_TESTING_Topology restrict_topology,
684 char *restrict_transports); 684 char *restrict_transports);
685 685
686/* 686/**
687 * There are many ways to connect peers that are supported by this function.
688 * To connect peers in the same topology that was created via the
689 * GNUNET_TESTING_create_topology, the topology variable must be set to
690 * GNUNET_TESTING_TOPOLOGY_NONE. If the topology variable is specified,
691 * a new instance of that topology will be generated and attempted to be
692 * connected. This could result in some connections being impossible,
693 * because some topologies are non-deterministic.
694 *
687 * @param pg the peer group struct representing the running peers 695 * @param pg the peer group struct representing the running peers
688 * @param topology which topology to connect the peers in 696 * @param topology which topology to connect the peers in
689 * @param options options for connecting the topology 697 * @param options options for connecting the topology
690 * @param option_modifier modifier for options that take a parameter 698 * @param option_modifier modifier for options that take a parameter
699 * @return the number of connections that will be attempted, GNUNET_SYSERR on error
691 */ 700 */
692int 701int
693GNUNET_TESTING_connect_topology (struct GNUNET_TESTING_PeerGroup *pg, 702GNUNET_TESTING_connect_topology (struct GNUNET_TESTING_PeerGroup *pg,