XFusion API v1.3.0
|
#include "lwip/ip_addr.h"
#include "lwip/icmp.h"
#include "xf_osal.h"
#include "xf_utils.h"
结构体 | |
struct | _xf_ping_cfg_t |
ping 配置类型。 更多... | |
struct | _xf_ping_cfg_update_flags_t |
ping 更新配置标志。 更多... | |
struct | _xf_ping_ctx_t |
ping 会话的上下文。 更多... | |
union | _xf_ping_ctx_t::sockaddr_in_in6_u |
宏定义 | |
#define | XF_PING_THREAD_NAME "xf_ping" |
#define | XF_PING_DEFAULT_CONFIG() |
默认 ping 配置 | |
类型定义 | |
typedef struct _xf_ping_ctx_t * | xf_ping_t |
ping 会话句柄。 | |
typedef struct _xf_ping_cfg_t | xf_ping_cfg_t |
ping 配置类型。 | |
typedef struct _xf_ping_cfg_update_flags_t | xf_ping_cfg_update_flags_t |
ping 更新配置标志。 | |
typedef enum _xf_ping_event_code_t | xf_ping_event_code_t |
Ping 事件声明。 | |
typedef int32_t | xf_ping_event_id_t |
ping 事件 id。见 xf_ping_event_code_t. | |
typedef void(* | xf_ping_cb_t) (xf_ping_event_id_t event_id, xf_ping_t hdl, void *user_args) |
ping 回调函数原型。 | |
typedef struct _xf_ping_ctx_t | xf_ping_ctx_t |
ping 会话的上下文。 | |
枚举 | |
enum | _xf_ping_event_code_t { XF_PING_EVENT_SUCC = 0x00 , XF_PING_EVENT_TIMEOUT , XF_PING_EVENT_END , XF_PING_EVENT_DELETE , XF_PING_EVENT_MAX } |
Ping 事件声明。 更多... | |
函数 | |
xf_err_t | xf_ping_new_session (const xf_ping_cfg_t *p_cfg, xf_ping_cb_t cb_func, void *user_args, xf_ping_t *hdl_out) |
创建 ping 会话。 | |
xf_err_t | xf_ping_delete_session (xf_ping_t hdl) |
删除 ping 会话。 | |
xf_err_t | xf_ping_start (xf_ping_t hdl) |
启动 ping 会话。 | |
xf_err_t | xf_ping_restart (xf_ping_t hdl, const xf_ping_cfg_t *p_cfg, xf_ping_cfg_update_flags_t *p_flags) |
重新启动 ping 会话。 | |
bool | xf_ping_is_running (xf_ping_t hdl) |
检查 ping 是否正在运行。 | |
xf_err_t | xf_ping_stop (xf_ping_t hdl) |
停止 ping 会话。 | |