test_mesh_2dtorus.c | test_mesh_2dtorus.c | |||
---|---|---|---|---|
skipping to change at line 169 | skipping to change at line 169 | |||
} | } | |||
else | else | |||
{ | { | |||
if (first == NULL || second == NULL) | if (first == NULL || second == NULL) | |||
{ | { | |||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Connection %u NULL\n", | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Connection %u NULL\n", | |||
topo_connections); | topo_connections); | |||
if (disconnect_task != GNUNET_SCHEDULER_NO_TASK) | if (disconnect_task != GNUNET_SCHEDULER_NO_TASK) | |||
{ | { | |||
GNUNET_SCHEDULER_cancel (disconnect_task); | GNUNET_SCHEDULER_cancel (disconnect_task); | |||
GNUNET_SCHEDULER_add_now (&disconnect_peers, NULL); | disconnect_task = GNUNET_SCHEDULER_add_now (&disconnect_peers, NULL ); | |||
} | } | |||
return; | return; | |||
} | } | |||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Connection %u ok\n", | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Connection %u ok\n", | |||
topo_connections); | topo_connections); | |||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: %s\n", GNUNET_i2s (first) ); | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: %s\n", GNUNET_i2s (first) ); | |||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: %s\n", GNUNET_i2s (second )); | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: %s\n", GNUNET_i2s (second )); | |||
} | } | |||
} | } | |||
skipping to change at line 311 | skipping to change at line 311 | |||
return; | return; | |||
} | } | |||
hosts = GNUNET_TESTING_hosts_load (testing_cfg); | hosts = GNUNET_TESTING_hosts_load (testing_cfg); | |||
pg = GNUNET_TESTING_peergroup_start (testing_cfg, num_peers, TIMEOUT, | pg = GNUNET_TESTING_peergroup_start (testing_cfg, num_peers, TIMEOUT, | |||
&connect_cb, &peergroup_ready, NULL, | &connect_cb, &peergroup_ready, NULL, | |||
hosts); | hosts); | |||
GNUNET_assert (pg != NULL); | GNUNET_assert (pg != NULL); | |||
shutdown_handle = | shutdown_handle = | |||
GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_get_forever (), | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | |||
&shutdown_task, NULL); | &shutdown_task, NULL); | |||
} | } | |||
/** | /** | |||
* test_mesh_2dtorus command line options | * test_mesh_2dtorus command line options | |||
*/ | */ | |||
static struct GNUNET_GETOPT_CommandLineOption options[] = { | static struct GNUNET_GETOPT_CommandLineOption options[] = { | |||
{'V', "verbose", NULL, | {'V', "verbose", NULL, | |||
gettext_noop ("be verbose (print progress information)"), | gettext_noop ("be verbose (print progress information)"), | |||
0, &GNUNET_GETOPT_set_one, &verbose}, | 0, &GNUNET_GETOPT_set_one, &verbose}, | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |