19#ifndef ZEPHYR_INCLUDE_NET_ZPERF_H_
20#define ZEPHYR_INCLUDE_NET_ZPERF_H_
32 ZPERF_SESSION_STARTED,
33 ZPERF_SESSION_PERIODIC_RESULT,
34 ZPERF_SESSION_FINISHED,
38struct zperf_upload_params {
52struct zperf_download_params {
#define IFNAMSIZ
Network interface name length.
Definition socket.h:1104
int zperf_tcp_upload_async(const struct zperf_upload_params *param, zperf_callback callback, void *user_data)
Asynchronous TCP upload operation.
int zperf_tcp_upload(const struct zperf_upload_params *param, struct zperf_results *result)
Synchronous TCP upload operation.
int zperf_udp_download_stop(void)
Stop UDP server.
int zperf_udp_upload(const struct zperf_upload_params *param, struct zperf_results *result)
Synchronous UDP upload operation.
int zperf_tcp_download(const struct zperf_download_params *param, zperf_callback callback, void *user_data)
Start TCP server.
int zperf_udp_download(const struct zperf_download_params *param, zperf_callback callback, void *user_data)
Start UDP server.
int zperf_tcp_download_stop(void)
Stop TCP server.
int zperf_udp_upload_async(const struct zperf_upload_params *param, zperf_callback callback, void *user_data)
Asynchronous UDP upload operation.
void(* zperf_callback)(enum zperf_status status, struct zperf_results *result, void *user_data)
Zperf callback function used for asynchronous operations.
Definition zperf.h:81
BSD Sockets compatible API definitions.
IPv6 and IPv4 definitions.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Generic sockaddr struct.
Definition net_ip.h:387
Performance results.
Definition zperf.h:61
uint64_t total_len
Total length of the transferred data.
Definition zperf.h:66
uint64_t client_time_in_us
Client connection time in microseconds.
Definition zperf.h:69
uint32_t nb_packets_errors
Number of packet errors.
Definition zperf.h:71
uint32_t packet_size
Packet size.
Definition zperf.h:70
uint32_t nb_packets_outorder
Number of packets out of order.
Definition zperf.h:65
uint64_t time_in_us
Total time of the transfer in microseconds.
Definition zperf.h:67
uint32_t nb_packets_lost
Number of packets lost.
Definition zperf.h:64
uint32_t nb_packets_rcvd
Number of packets received.
Definition zperf.h:63
uint32_t nb_packets_sent
Number of packets sent.
Definition zperf.h:62
uint32_t jitter_in_us
Jitter in microseconds.
Definition zperf.h:68