harmony 鸿蒙NetConn_Route

2025-06-16 浏览 (1)

NetConn_Route

概述

路由配置信息。

起始版本: 11

相关模块:NetConnection

所在头文件: net_connection_type.h

汇总

成员变量

名称描述
iface [NETCONN_MAX_STR_LEN]网络接口。
destination目标地址。
gateway网关地址。
hasGateway是否存在网关。
isDefaultRoute是否是默认路由。

结构体成员变量说明

destination

NetConn_NetAddr NetConn_Route::destination

描述

目标地址。

gateway

NetConn_NetAddr NetConn_Route::gateway

描述

网关地址。

hasGateway

int32_t NetConn_Route::hasGateway

描述

是否存在网关。

iface

char NetConn_Route::iface[NETCONN_MAX_STR_LEN]

描述

网络接口。

isDefaultRoute

int32_t NetConn_Route::isDefaultRoute

描述

是否是默认路由。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Network Kit(网络服务)

harmony 鸿蒙NetConn_ConnectionProperties

harmony 鸿蒙NetConn_HttpProxy

harmony 鸿蒙NetConn_NetAddr

harmony 鸿蒙NetConn_NetCapabilities

harmony 鸿蒙NetConn_NetConnCallback

harmony 鸿蒙NetConn_NetHandle

harmony 鸿蒙NetConn_NetHandleList

harmony 鸿蒙NetConn_NetSpecifier

harmony 鸿蒙NetConnection

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/YxSMpD