net_connection_type.h
Overview
Declares the structs for the C APIs of the network connection module.
Library: libnet_connection.so
System capability: SystemCapability.Communication.NetManager.Core
Since: 11
Related module: NetConnection
Summary
Structs
Name | Description |
---|---|
NetConn_NetHandle | Network ID. |
NetConn_NetCapabilities | Network capability set. |
NetConn_NetAddr | Network address. |
NetConn_Route | Route configuration: |
NetConn_HttpProxy | Proxy configuration information. |
NetConn_ConnectionProperties | Network connection information. |
NetConn_NetHandleList | Network list. |
Macros
Name | Description |
---|---|
NETCONN_MAX_NET_SIZE | 32 |
NETCONN_MAX_BEARER_TYPE_SIZE | 32 |
NETCONN_MAX_CAP_SIZE | 32 |
NETCONN_MAX_ADDR_SIZE | 32 |
NETCONN_MAX_ROUTE_SIZE | 64 |
NETCONN_MAX_EXCLUSION_SIZE | 256 |
NETCONN_MAX_STR_LEN | 256 |
Types
Name | Description |
---|---|
NetConn_NetCap | Network capability set. |
NetConn_NetBearerType | Network carrier type. |
NetConn_NetHandle | Network ID. |
NetConn_NetCapabilities | Network capability set. |
NetConn_NetAddr | Network address. |
NetConn_Route | Route configuration: |
NetConn_HttpProxy | Proxy configuration information. |
NetConn_ConnectionProperties | Network connection information. |
NetConn_NetHandleList | Network list. |
(*OH_NetConn_CustomDnsResolver) (const char *host, const char *serv, const struct addrinfo *hint, struct addrinfo **res) | Pointer to the custom DNS resolver. |
Enums
Name | Description |
---|---|
NetConn_NetCap { NETCONN_NET_CAPABILITY_MMS = 0, NETCONN_NET_CAPABILITY_NOT_METERED = 11, NETCONN_NET_CAPABILITY_INTERNET = 12, NETCONN_NET_CAPABILITY_NOT_VPN = 15, NETCONN_NET_CAPABILITY_VALIDATED = 16 } |
Network capability set. |
NetConn_NetBearerType { NETCONN_BEARER_CELLULAR = 0, NETCONN_BEARER_WIFI = 1, NETCONN_BEARER_ETHERNET = 3 } |
Network carrier type. |