2 This file is part of GNUnet
3 (C) 2008--2012 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file testbed/testbed_api_topology.c
23 * @brief topology-generation functions
24 * @author Christian Grothoff
27 #include "gnunet_testbed_service.h"
31 * Configure overall network topology to have a particular shape.
33 * @param op_cls closure argument to give with the operation event
34 * @param num_peers number of peers in 'peers'
35 * @param peers array of 'num_peers' with the peers to configure
36 * @param topo desired underlay topology to use
37 * @param ap topology-specific options
38 * @return handle to the operation, NULL if configuring the topology
39 * is not allowed at this time
41 struct GNUNET_TESTBED_Operation *
42 GNUNET_TESTBED_underlay_configure_topology_va (void *op_cls,
43 unsigned int num_peers,
44 struct GNUNET_TESTBED_Peer **peers,
45 enum GNUNET_TESTBED_TopologyOption topo,
54 * Configure overall network topology to have a particular shape.
56 * @param op_cls closure argument to give with the operation event
57 * @param num_peers number of peers in 'peers'
58 * @param peers array of 'num_peers' with the peers to configure
59 * @param topo desired underlay topology to use
60 * @param ... topology-specific options
61 * @return handle to the operation, NULL if configuring the topology
62 * is not allowed at this time
64 struct GNUNET_TESTBED_Operation *
65 GNUNET_TESTBED_underlay_configure_topology (void *op_cls,
66 unsigned int num_peers,
67 struct GNUNET_TESTBED_Peer **peers,
68 enum GNUNET_TESTBED_TopologyOption topo,
77 * All peers must have been started before calling this function.
78 * This function then connects the given peers in the P2P overlay
79 * using the given topology.
81 * @param op_cls closure argument to give with the operation event
82 * @param num_peers number of peers in 'peers'
83 * @param peers array of 'num_peers' with the peers to configure
84 * @param topo desired underlay topology to use
85 * @param va topology-specific options
86 * @return handle to the operation, NULL if connecting these
87 * peers is fundamentally not possible at this time (peers
88 * not running or underlay disallows)
90 struct GNUNET_TESTBED_Operation *
91 GNUNET_TESTBED_overlay_configure_topology_va (void *op_cls,
92 unsigned int num_peers,
93 struct GNUNET_TESTBED_Peer *peers,
94 enum GNUNET_TESTBED_TopologyOption topo,
103 * All peers must have been started before calling this function.
104 * This function then connects the given peers in the P2P overlay
105 * using the given topology.
107 * @param op_cls closure argument to give with the operation event
108 * @param num_peers number of peers in 'peers'
109 * @param peers array of 'num_peers' with the peers to configure
110 * @param topo desired underlay topology to use
111 * @param ... topology-specific options
112 * @return handle to the operation, NULL if connecting these
113 * peers is fundamentally not possible at this time (peers
114 * not running or underlay disallows)
116 struct GNUNET_TESTBED_Operation *
117 GNUNET_TESTBED_overlay_configure_topology (void *op_cls,
118 unsigned int num_peers,
119 struct GNUNET_TESTBED_Peer *peers,
120 enum GNUNET_TESTBED_TopologyOption topo,
127 /* end of testbed_api_topology.c */