struct tapi_perf_opts

Overview

Network throughput test tool options More…

#include <tapi_performance.h>

struct tapi_perf_opts {
    // fields

    char* host;
    char* src_host;
    int port;
    rpc_socket_proto ipversion;
    rpc_socket_proto protocol;
    int64_t bandwidth_bits;
    int64_t num_bytes;
    int32_t duration_sec;
    int32_t interval_sec;
    int32_t length;
    int16_t streams;
    bool reverse;
    bool dual;
};

Detailed Documentation

Network throughput test tool options

Fields

char* host

Destination host (server)

char* src_host

Source host (client)

int port

Port to listen on/connect to

rpc_socket_proto ipversion

IP version

rpc_socket_proto protocol

Transport protocol

int64_t bandwidth_bits

Target bandwidth (bits/sec)

int64_t num_bytes

Number of bytes to transmit (instead of time)

int32_t duration_sec

Time in seconds to transmit for

int32_t interval_sec

Pause in seconds between periodic bandwidth reports. Warning! It can affect report processing

int32_t length

Length of buffer to read or write

int16_t streams

Number of parallel client streams

bool reverse

Whether run in reverse mode (server sends, client receives), or not

bool dual

Bidirectional mode