diff options
Diffstat (limited to 'src/ats-tests/ats-testing.h')
-rw-r--r-- | src/ats-tests/ats-testing.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/ats-tests/ats-testing.h b/src/ats-tests/ats-testing.h index ef3819ce4..c74a460f0 100644 --- a/src/ats-tests/ats-testing.h +++ b/src/ats-tests/ats-testing.h | |||
@@ -609,6 +609,20 @@ GNUNET_ATS_TEST_generate_traffic_stop (struct TrafficGenerator *tg); | |||
609 | void | 609 | void |
610 | GNUNET_ATS_TEST_generate_traffic_stop_all (); | 610 | GNUNET_ATS_TEST_generate_traffic_stop_all (); |
611 | 611 | ||
612 | /** | ||
613 | * Generate between the source master and the partner and set preferences with a | ||
614 | * value depending on the generator. | ||
615 | * | ||
616 | * @param src source | ||
617 | * @param dest partner | ||
618 | * @param type type of preferences to generate | ||
619 | * @param base_value traffic base rate to send data with | ||
620 | * @param value_rate traffic maximum rate to send data with | ||
621 | * @param period duration of a period of preferences generation (~ 1/frequency) | ||
622 | * @param frequency how long to generate preferences | ||
623 | * @param kind ATS preference to generate | ||
624 | * @return the traffic generator | ||
625 | */ | ||
612 | struct PreferenceGenerator * | 626 | struct PreferenceGenerator * |
613 | GNUNET_ATS_TEST_generate_preferences_start (struct BenchmarkPeer *src, | 627 | GNUNET_ATS_TEST_generate_preferences_start (struct BenchmarkPeer *src, |
614 | struct BenchmarkPartner *dest, | 628 | struct BenchmarkPartner *dest, |
@@ -635,7 +649,9 @@ GNUNET_ATS_TEST_generate_preferences_stop_all (); | |||
635 | * @param log_frequency the logging frequency | 649 | * @param log_frequency the logging frequency |
636 | * @param testname the testname | 650 | * @param testname the testname |
637 | * @param masters the master peers used for benchmarking | 651 | * @param masters the master peers used for benchmarking |
638 | * @param num_master the number of master peers | 652 | * @param num_masters the number of master peers |
653 | * @param num_slaves the number of slave peers | ||
654 | * @param verbose verbose logging | ||
639 | * @return the logging handle or NULL on error | 655 | * @return the logging handle or NULL on error |
640 | */ | 656 | */ |
641 | struct LoggingHandle * | 657 | struct LoggingHandle * |
@@ -699,8 +715,8 @@ GNUNET_ATS_TEST_get_partner (int src, int dest); | |||
699 | * @param test_core connect to CORE service (GNUNET_YES) or transport (GNUNET_NO) | 715 | * @param test_core connect to CORE service (GNUNET_YES) or transport (GNUNET_NO) |
700 | * @param done_cb function to call when topology is setup | 716 | * @param done_cb function to call when topology is setup |
701 | * @param done_cb_cls cls for callback | 717 | * @param done_cb_cls cls for callback |
702 | * @param recv_cb callback to call when data are received | 718 | * @param transport_recv_cb callback to call when data are received |
703 | * @param perf_cb callback to call when performance info are received | 719 | * @param log_request_cb callback to call when logging is required |
704 | */ | 720 | */ |
705 | void | 721 | void |
706 | GNUNET_ATS_TEST_create_topology (char *name, char *cfg_file, | 722 | GNUNET_ATS_TEST_create_topology (char *name, char *cfg_file, |