- die_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL );
-
- p1 = GNUNET_TRANSPORT_TESTING_start_peer (tth, cfg_file_p1, 1,
- ¬ify_receive, ¬ify_connect, ¬ify_disconnect, &start_cb, NULL );
- p1_stat = GNUNET_STATISTICS_create ("transport", p1->cfg);
- GNUNET_STATISTICS_watch (p1_stat, "transport",
- "# Attempts to switch addresses",
- stat_start_attempt_cb, p1);
- GNUNET_STATISTICS_watch (p1_stat, "transport",
- "# Successful attempts to switch addresses",
- stat_success_attempt_cb, p1);
- GNUNET_STATISTICS_watch (p1_stat, "transport",
- "# Failed attempts to switch addresses (failed to send CONNECT CONT)",
- stat_fail_attempt_cb, p1);
- GNUNET_STATISTICS_watch (p1_stat, "transport",
- "# Failed attempts to switch addresses (failed to send CONNECT)",
- stat_fail_attempt_cb, p1);
- GNUNET_STATISTICS_watch (p1_stat, "transport",
- "# Failed attempts to switch addresses (no response)",
- stat_fail_attempt_cb, p1);
-
- p2 = GNUNET_TRANSPORT_TESTING_start_peer (tth, cfg_file_p2, 2,
- ¬ify_receive, ¬ify_connect, ¬ify_disconnect, &start_cb, NULL );
-
- p2_stat = GNUNET_STATISTICS_create ("transport", p2->cfg);
- GNUNET_STATISTICS_watch (p2_stat, "transport",
- "# Attempts to switch addresses",
- stat_start_attempt_cb, p2);
- GNUNET_STATISTICS_watch (p2_stat, "transport",
- "# Successful attempts to switch addresses",
- stat_success_attempt_cb, p2);
- GNUNET_STATISTICS_watch (p2_stat, "transport",
- "# Failed attempts to switch addresses (failed to send CONNECT CONT)",
- stat_fail_attempt_cb, p2);
- GNUNET_STATISTICS_watch (p2_stat, "transport",
- "# Failed attempts to switch addresses (failed to send CONNECT)",
- stat_fail_attempt_cb, p2);
- GNUNET_STATISTICS_watch (p2_stat, "transport",
- "# Failed attempts to switch addresses (no response)",
- stat_fail_attempt_cb, p2);
-
- if ((p1 == NULL )|| (p2 == NULL))