aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-03-15 09:37:18 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-03-15 09:37:18 +0000
commitb92fefc699df523441c3b24d6d59cdc016af6bac (patch)
tree6710e2c32918af8d0f780f655acd5a1727f1fffa /src/include/gnunet_testbed_service.h
parentfef4792abec19870be63c7922ada0ebd4397a7c1 (diff)
downloadgnunet-b92fefc699df523441c3b24d6d59cdc016af6bac.tar.gz
gnunet-b92fefc699df523441c3b24d6d59cdc016af6bac.zip
Call TestMaster callback upon timeout set through configuration
fixes #2833
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index 8ede5ee44..e41901ff1 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -1389,7 +1389,8 @@ GNUNET_TESTBED_get_statistics (unsigned int num_peers,
1389 * 1389 *
1390 * @param cls closure 1390 * @param cls closure
1391 * @param num_peers number of peers in 'peers' 1391 * @param num_peers number of peers in 'peers'
1392 * @param peers handle to peers run in the testbed 1392 * @param peers handle to peers run in the testbed. NULL upon timeout (see
1393 * GNUNET_TESTBED_test_run()).
1393 */ 1394 */
1394typedef void (*GNUNET_TESTBED_TestMaster)(void *cls, 1395typedef void (*GNUNET_TESTBED_TestMaster)(void *cls,
1395 unsigned int num_peers, 1396 unsigned int num_peers,
@@ -1404,6 +1405,10 @@ typedef void (*GNUNET_TESTBED_TestMaster)(void *cls,
1404 * (with possible options given in "UNDERLAY_XXX" and/or 1405 * (with possible options given in "UNDERLAY_XXX" and/or
1405 * "OVERLAY_XXX"). 1406 * "OVERLAY_XXX").
1406 * 1407 *
1408 * The test_master callback will be called once the testbed setup is finished or
1409 * upon a timeout. This timeout is given through the configuration file by
1410 * setting the option "SETUP_TIMEOUT" in "[TESTBED]" section.
1411 *
1407 * The testbed is to be terminated using a call to 1412 * The testbed is to be terminated using a call to
1408 * "GNUNET_SCHEDULER_shutdown". 1413 * "GNUNET_SCHEDULER_shutdown".
1409 * 1414 *
@@ -1421,7 +1426,8 @@ typedef void (*GNUNET_TESTBED_TestMaster)(void *cls,
1421 * set in the event_mask as this is the only way get access to the 1426 * set in the event_mask as this is the only way get access to the
1422 * handle of each peer 1427 * handle of each peer
1423 * @param cc_cls closure for cc 1428 * @param cc_cls closure for cc
1424 * @param test_master this callback will be called once the test is ready 1429 * @param test_master this callback will be called once the test is ready or
1430 * upon timeout
1425 * @param test_master_cls closure for 'test_master'. 1431 * @param test_master_cls closure for 'test_master'.
1426 */ 1432 */
1427void 1433void
@@ -1439,9 +1445,13 @@ GNUNET_TESTBED_run (const char *host_filename,
1439 * Convenience method for running a "simple" test on the local system 1445 * Convenience method for running a "simple" test on the local system
1440 * with a single call from 'main'. Underlay and overlay topology are 1446 * with a single call from 'main'. Underlay and overlay topology are
1441 * configured using the "UNDERLAY" and "OVERLAY" options in the 1447 * configured using the "UNDERLAY" and "OVERLAY" options in the
1442 * "[testbed]" section of the configuration (with possible options 1448 * "[TESTBED]" section of the configuration (with possible options
1443 * given in "UNDERLAY_XXX" and/or "OVERLAY_XXX"). 1449 * given in "UNDERLAY_XXX" and/or "OVERLAY_XXX").
1444 * 1450 *
1451 * The test_master callback will be called once the testbed setup is finished or
1452 * upon a timeout. This timeout is given through the configuration file by
1453 * setting the option "SETUP_TIMEOUT" in "[TESTBED]" section.
1454 *
1445 * The test is to be terminated using a call to 1455 * The test is to be terminated using a call to
1446 * "GNUNET_SCHEDULER_shutdown". If starting the test fails, 1456 * "GNUNET_SCHEDULER_shutdown". If starting the test fails,
1447 * the program is stopped without 'master' ever being run. 1457 * the program is stopped without 'master' ever being run.
@@ -1464,7 +1474,8 @@ GNUNET_TESTBED_run (const char *host_filename,
1464 * set in the event_mask as this is the only way get access to the 1474 * set in the event_mask as this is the only way get access to the
1465 * handle of each peer 1475 * handle of each peer
1466 * @param cc_cls closure for cc 1476 * @param cc_cls closure for cc
1467 * @param test_master this callback will be called once the test is ready 1477 * @param test_master this callback will be called once the test is ready or
1478 * upon timeout
1468 * @param test_master_cls closure for 'test_master'. 1479 * @param test_master_cls closure for 'test_master'.
1469 * @return GNUNET_SYSERR on error, GNUNET_OK on success 1480 * @return GNUNET_SYSERR on error, GNUNET_OK on success
1470 */ 1481 */