harmony 鸿蒙NetConn_Route

  • 2025-06-12
  • 浏览 (4)

NetConn_Route

Overview

Defines the route configuration.

Since: 11

Related module: NetConnection

Header file: net_connection_type.h

Summary

Member Variables

Name Use guide
iface [NETCONN_MAX_STR_LEN] Network interface.
destination Destination address.
gateway Gateway address.
hasGateway Whether a gateway exists.
isDefaultRoute Whether the default route is used.

Member Variable Description

destination

NetConn_NetAddr NetConn_Route::destination

Description

Destination address.

gateway

NetConn_NetAddr NetConn_Route::gateway

Description

Gateway address.

hasGateway

int32_t NetConn_Route::hasGateway

Description

Whether a gateway exists.

iface

char NetConn_Route::iface[NETCONN_MAX_STR_LEN]

Description

Network interface.

isDefaultRoute

int32_t NetConn_Route::isDefaultRoute

Description

Whether the default route is used.

你可能感兴趣的鸿蒙文章

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

0  赞