enh: Introduce API functions for repeating_payload option (#869)
Этот коммит содержится в:
родитель
e9e984de2b
Коммит
8fc10fa34b
@ -237,6 +237,12 @@ iperf_get_test_num_streams(struct iperf_test *ipt)
|
|||||||
return ipt->num_streams;
|
return ipt->num_streams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
iperf_get_test_repeating_payload(struct iperf_test *ipt)
|
||||||
|
{
|
||||||
|
return ipt->repeating_payload;
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
iperf_get_test_server_port(struct iperf_test *ipt)
|
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;
|
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
|
static void
|
||||||
check_sender_has_retransmits(struct iperf_test *ipt)
|
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_reporter_interval( struct iperf_test* ipt );
|
||||||
double iperf_get_test_stats_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_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 );
|
int iperf_get_test_server_port( struct iperf_test* ipt );
|
||||||
char* iperf_get_test_server_hostname( struct iperf_test* ipt );
|
char* iperf_get_test_server_hostname( struct iperf_test* ipt );
|
||||||
char* iperf_get_test_template( 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_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_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_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_role( struct iperf_test* ipt, char role );
|
||||||
void iperf_set_test_server_hostname( struct iperf_test* ipt, char* server_hostname );
|
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 );
|
void iperf_set_test_template( struct iperf_test *ipt, char *tmp_template );
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user