| 
    Zephyr Project API
    3.3.0
    
   A Scalable Open Source RTOS 
   | 
 
Data Structures | |
| struct | zperf_upload_params | 
| struct | zperf_download_params | 
| struct | zperf_results | 
Typedefs | |
| typedef void(* | zperf_callback) (enum zperf_status status, struct zperf_results *result, void *user_data) | 
| Zperf callback function used for asynchronous operations.  More... | |
Enumerations | |
| enum | zperf_status { ZPERF_SESSION_STARTED , ZPERF_SESSION_FINISHED , ZPERF_SESSION_ERROR } | 
Functions | |
| int | zperf_udp_upload (const struct zperf_upload_params *param, struct zperf_results *result) | 
| Synchronous UDP upload operation. The function blocks until the upload is complete.  More... | |
| int | zperf_tcp_upload (const struct zperf_upload_params *param, struct zperf_results *result) | 
| Synchronous TCP upload operation. The function blocks until the upload is complete.  More... | |
| int | zperf_udp_upload_async (const struct zperf_upload_params *param, zperf_callback callback, void *user_data) | 
| Asynchronous UDP upload operation.  More... | |
| int | zperf_tcp_upload_async (const struct zperf_upload_params *param, zperf_callback callback, void *user_data) | 
| Asynchronous TCP upload operation.  More... | |
| int | zperf_udp_download (const struct zperf_download_params *param, zperf_callback callback, void *user_data) | 
| Start UDP server.  More... | |
| int | zperf_tcp_download (const struct zperf_download_params *param, zperf_callback callback, void *user_data) | 
| Start TCP server.  More... | |
| int | zperf_udp_download_stop (void) | 
| Stop UDP server.  More... | |
| int | zperf_tcp_download_stop (void) | 
| Stop TCP server.  More... | |
| typedef void(* zperf_callback) (enum zperf_status status, struct zperf_results *result, void *user_data) | 
#include <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. | 
| enum zperf_status | 
#include <include/zephyr/net/zperf.h>
| Enumerator | |
|---|---|
| ZPERF_SESSION_STARTED | |
| ZPERF_SESSION_FINISHED | |
| ZPERF_SESSION_ERROR | |
| int zperf_tcp_download | ( | const struct zperf_download_params * | param, | 
| zperf_callback | callback, | ||
| void * | user_data | ||
| ) | 
#include <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 <include/zephyr/net/zperf.h>
Stop TCP server.
| int zperf_tcp_upload | ( | const struct zperf_upload_params * | param, | 
| struct zperf_results * | result | ||
| ) | 
#include <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 <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 <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 <include/zephyr/net/zperf.h>
Stop UDP server.
| int zperf_udp_upload | ( | const struct zperf_upload_params * | param, | 
| struct zperf_results * | result | ||
| ) | 
#include <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 <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. |