WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @file testbed/generate-underlay-topology.c
}
fprintf (stdout, "%u -> %u\n", A, B);
GNUNET_break (SQLITE_OK == sqlite3_reset (stmt_insert));
- //GNUNET_break (SQLITE_OK == sqlite3_clear_bindings (stmt_insert));
+ // GNUNET_break (SQLITE_OK == sqlite3_clear_bindings (stmt_insert));
if ((SQLITE_OK != sqlite3_bind_int (stmt_insert, 1, B)) ||
(SQLITE_OK != sqlite3_bind_int (stmt_insert, 2, A)))
{
return;
}
break;
+
case GNUNET_TESTBED_TOPOLOGY_FROM_FILE:
if (NULL == (arg_str1 = args[argc++]))
{
return;
}
break;
+
default:
break;
}
return;
}
break;
+
default:
break;
}
NULL,
topology);
break;
+
case GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI:
case GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD_RING:
case GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD:
topology,
arg_uint1);
break;
+
case GNUNET_TESTBED_TOPOLOGY_FROM_FILE:
GNUNET_TESTBED_underlay_construct_ (num_peers,
link_processor,
topology,
arg_str1);
break;
+
case GNUNET_TESTBED_TOPOLOGY_SCALE_FREE:
GNUNET_TESTBED_underlay_construct_ (num_peers,
link_processor,
arg_uint1,
arg_uint2);
break;
+
default:
GNUNET_assert (0);
}
main (int argc, char *const argv[])
{
struct GNUNET_GETOPT_CommandLineOption option[] = {
-
GNUNET_GETOPT_option_uint ('p',
"num-peers",
"COUNT",
gettext_noop ("create COUNT number of peers"),
&num_peers),
- GNUNET_GETOPT_OPTION_END};
+ GNUNET_GETOPT_OPTION_END
+ };
int ret;