1
1

enh: Introduce API functions for repeating_payload option (#869)

Этот коммит содержится в:
srgnk 2019-05-17 22:38:58 +02:00 коммит произвёл Bruce A. Mah
родитель e9e984de2b
Коммит 8fc10fa34b
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -237,6 +237,12 @@ iperf_get_test_num_streams(struct iperf_test *ipt)
return ipt->num_streams;
}
int
iperf_get_test_repeating_payload(struct iperf_test *ipt)
{
return ipt->repeating_payload;
}
int
iperf_get_test_server_port(struct iperf_test *ipt)
{
@ -432,6 +438,12 @@ iperf_set_test_num_streams(struct iperf_test *ipt, int num_streams)
ipt->num_streams = num_streams;
}
void
iperf_set_test_repeating_payload(struct iperf_test *ipt, int repeating_payload)
{
ipt->repeating_payload = repeating_payload;
}
static void
check_sender_has_retransmits(struct iperf_test *ipt)
{

Просмотреть файл

@ -111,6 +111,7 @@ int iperf_get_test_socket_bufsize( struct iperf_test* ipt );
double iperf_get_test_reporter_interval( struct iperf_test* ipt );
double iperf_get_test_stats_interval( struct iperf_test* ipt );
int iperf_get_test_num_streams( struct iperf_test* ipt );
int iperf_get_test_repeating_payload( struct iperf_test* ipt );
int iperf_get_test_server_port( struct iperf_test* ipt );
char* iperf_get_test_server_hostname( struct iperf_test* ipt );
char* iperf_get_test_template( struct iperf_test* ipt );
@ -143,6 +144,7 @@ void iperf_set_test_burst( struct iperf_test* ipt, int burst );
void iperf_set_test_server_port( struct iperf_test* ipt, int server_port );
void iperf_set_test_socket_bufsize( struct iperf_test* ipt, int socket_bufsize );
void iperf_set_test_num_streams( struct iperf_test* ipt, int num_streams );
void iperf_set_test_repeating_payload( struct iperf_test* ipt, int repeating_payload );
void iperf_set_test_role( struct iperf_test* ipt, char role );
void iperf_set_test_server_hostname( struct iperf_test* ipt, char* server_hostname );
void iperf_set_test_template( struct iperf_test *ipt, char *tmp_template );