Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Data Structures | |
struct | zperf_results |
Performance results. More... | |
Typedefs | |
typedef void(* | zperf_callback) (enum zperf_status status, struct zperf_results *result, void *user_data) |
Zperf callback function used for asynchronous operations. | |
Functions | |
int | zperf_udp_upload (const struct zperf_upload_params *param, struct zperf_results *result) |
Synchronous UDP upload operation. | |
int | zperf_tcp_upload (const struct zperf_upload_params *param, struct zperf_results *result) |
Synchronous TCP upload operation. | |
int | zperf_udp_upload_async (const struct zperf_upload_params *param, zperf_callback callback, void *user_data) |
Asynchronous UDP upload operation. | |
int | zperf_tcp_upload_async (const struct zperf_upload_params *param, zperf_callback callback, void *user_data) |
Asynchronous TCP upload operation. | |
int | zperf_udp_download (const struct zperf_download_params *param, zperf_callback callback, void *user_data) |
Start UDP server. | |
int | zperf_tcp_download (const struct zperf_download_params *param, zperf_callback callback, void *user_data) |
Start TCP server. | |
int | zperf_udp_download_stop (void) |
Stop UDP server. | |
int | zperf_tcp_download_stop (void) |
Stop TCP server. | |
typedef void(* zperf_callback) (enum zperf_status status, struct zperf_results *result, void *user_data) |
#include <zephyr/net/zperf.h>
Zperf callback function used for asynchronous operations.
status | Session status. |
result | Session results. May be NULL for certain events. |
user_data | A pointer to the user provided data. |
int zperf_tcp_download | ( | const struct zperf_download_params * | param, |
zperf_callback | callback, | ||
void * | user_data ) |
#include <zephyr/net/zperf.h>
Start TCP server.
param | Download parameters. |
callback | Session results callback. |
user_data | A pointer to the user data to be provided with the callback. |
int zperf_tcp_download_stop | ( | void | ) |
#include <zephyr/net/zperf.h>
Stop TCP server.
int zperf_tcp_upload | ( | const struct zperf_upload_params * | param, |
struct zperf_results * | result ) |
#include <zephyr/net/zperf.h>
Synchronous TCP upload operation.
The function blocks until the upload is complete.
param | Upload parameters. |
result | Session results. |
int zperf_tcp_upload_async | ( | const struct zperf_upload_params * | param, |
zperf_callback | callback, | ||
void * | user_data ) |
#include <zephyr/net/zperf.h>
Asynchronous TCP upload operation.
param | Upload parameters. |
callback | Session results callback. |
user_data | A pointer to the user data to be provided with the callback. |
int zperf_udp_download | ( | const struct zperf_download_params * | param, |
zperf_callback | callback, | ||
void * | user_data ) |
#include <zephyr/net/zperf.h>
Start UDP server.
param | Download parameters. |
callback | Session results callback. |
user_data | A pointer to the user data to be provided with the callback. |
int zperf_udp_download_stop | ( | void | ) |
#include <zephyr/net/zperf.h>
Stop UDP server.
int zperf_udp_upload | ( | const struct zperf_upload_params * | param, |
struct zperf_results * | result ) |
#include <zephyr/net/zperf.h>
Synchronous UDP upload operation.
The function blocks until the upload is complete.
param | Upload parameters. |
result | Session results. |
int zperf_udp_upload_async | ( | const struct zperf_upload_params * | param, |
zperf_callback | callback, | ||
void * | user_data ) |
#include <zephyr/net/zperf.h>
Asynchronous UDP upload operation.
param | Upload parameters. |
callback | Session results callback. |
user_data | A pointer to the user data to be provided with the callback. |