#include <stdio.h>
#include <string.h>
#include <sys/param.h>
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/netdb.h"
#include "xf_utils.h"
#include "xf_netif.h"
#include "xf_osal.h"
#include "xf_sys.h"
#include "xf_iperf.h"
浏览源代码.
- 作者
- catcatBlue (catca.nosp@m.tblu.nosp@m.e@qq..nosp@m.com)
- 版本
- 1.0
- 日期
- 2024-09-26
Copyright (c) 2024, CorAL. All rights reserved.
在文件 xf_iperf.c 中定义.
◆ IPERF_HUNDRED
#define IPERF_HUNDRED 100 |
◆ XF_ASSERT_RET_GOTO
#define XF_ASSERT_RET_GOTO |
( |
|
condition, |
|
|
|
err_code, |
|
|
|
label, |
|
|
|
tag, |
|
|
|
format, |
|
|
|
... |
|
) |
| |
值: do { \
ret = err_code; \
XF_ASSERT_GOTO(condition, label, tag, format, ##__VA_ARGS__); \
} while (0)
在文件 xf_iperf.c 第 73 行定义.
◆ iperf_is_udp_client()
static bool iperf_is_udp_client |
( |
void |
| ) |
|
|
inlinestatic |
◆ iperf_is_udp_server()
static bool iperf_is_udp_server |
( |
void |
| ) |
|
|
inlinestatic |
◆ iperf_is_tcp_client()
static bool iperf_is_tcp_client |
( |
void |
| ) |
|
|
inlinestatic |
◆ iperf_is_tcp_server()
static bool iperf_is_tcp_server |
( |
void |
| ) |
|
|
inlinestatic |
◆ iperf_get_socket_error_code()
static int iperf_get_socket_error_code |
( |
int |
sockfd | ) |
|
|
static |
◆ iperf_show_socket_error_reason()
static int iperf_show_socket_error_reason |
( |
const char * |
str, |
|
|
int |
sockfd |
|
) |
| |
|
static |
◆ iperf_report_task()
static void iperf_report_task |
( |
void * |
arg | ) |
|
|
static |
◆ iperf_start_report()
static xf_err_t iperf_start_report |
( |
void |
| ) |
|
|
static |
◆ socket_recv()
static void socket_recv |
( |
int |
recv_socket, |
|
|
struct sockaddr * |
listen_addr, |
|
|
uint8_t |
type |
|
) |
| |
|
static |
◆ socket_send()
static void socket_send |
( |
int |
send_socket, |
|
|
struct sockaddr * |
dest_addr, |
|
|
uint8_t |
type, |
|
|
int |
bw_lim |
|
) |
| |
|
static |
◆ iperf_run_tcp_server()
static xf_err_t iperf_run_tcp_server |
( |
void |
| ) |
|
|
static |
◆ iperf_run_tcp_client()
static xf_err_t iperf_run_tcp_client |
( |
void |
| ) |
|
|
static |
◆ iperf_run_udp_server()
static xf_err_t iperf_run_udp_server |
( |
void |
| ) |
|
|
static |
◆ iperf_run_udp_client()
static xf_err_t iperf_run_udp_client |
( |
void |
| ) |
|
|
static |
◆ iperf_task_traffic()
static void iperf_task_traffic |
( |
void * |
arg | ) |
|
|
static |
◆ iperf_get_buffer_len()
static uint32_t iperf_get_buffer_len |
( |
void |
| ) |
|
|
static |
◆ iperf_get_float_int()
static uint32_t iperf_get_float_int |
( |
float |
in | ) |
|
|
static |
◆ iperf_get_float_dec()
static uint32_t iperf_get_float_dec |
( |
float |
in | ) |
|
|
static |
◆ s_ctx
◆ TAG
const char* TAG = "iperf" |
|
static |