Structs§
- NetConn_
Connection Properties - @brief Defines the network connection properties.
- NetConn_
Http Proxy - @brief Defines the proxy configuration information.
- NetConn_
NetAddr - @brief Defines the network address.
- NetConn_
NetCapabilities - @brief Defines all network capabilities.
- NetConn_
NetConn Callback - @brief Defines the network connection callbacks.
- NetConn_
NetHandle - @brief Defines the network handle.
- NetConn_
NetHandle List - @brief Defines the network handle list.
- NetConn_
NetSpecifier - @brief Definition of network specifier.
- NetConn_
Route - @brief Defines the route configuration information.
- addrinfo
- sockaddr
Constants§
- NETCONN_
MAX_ ADDR_ SIZE - NETCONN_
MAX_ BEARER_ TYPE_ SIZE - NETCONN_
MAX_ CAP_ SIZE - NETCONN_
MAX_ EXCLUSION_ SIZE - NETCONN_
MAX_ NET_ SIZE - NETCONN_
MAX_ ROUTE_ SIZE - NETCONN_
MAX_ RTT_ NUM - NETCONN_
MAX_ STR_ LEN - NetConn_
NetBearer Type_ NETCONN_ BEARER_ BLUETOOTH - Bluetooth @since 12
- NetConn_
NetBearer Type_ NETCONN_ BEARER_ CELLULAR - Cellular network
- NetConn_
NetBearer Type_ NETCONN_ BEARER_ ETHERNET - Ethernet
- NetConn_
NetBearer Type_ NETCONN_ BEARER_ VPN - VPN @since 12
- NetConn_
NetBearer Type_ NETCONN_ BEARER_ WIFI - WIFI
- NetConn_
NetCap_ NETCONN_ NET_ CAPABILITY_ CHECKING_ CONNECTIVITY - In checking network connectivity. @since 12
- NetConn_
NetCap_ NETCONN_ NET_ CAPABILITY_ INTERNET - Internet
- NetConn_
NetCap_ NETCONN_ NET_ CAPABILITY_ MMS - MMS
- NetConn_
NetCap_ NETCONN_ NET_ CAPABILITY_ NOT_ METERED - Not Metered
- NetConn_
NetCap_ NETCONN_ NET_ CAPABILITY_ NOT_ VPN - Not VPN
- NetConn_
NetCap_ NETCONN_ NET_ CAPABILITY_ PORTAL - Portal @since 12
- NetConn_
NetCap_ NETCONN_ NET_ CAPABILITY_ VALIDATED - Validated
Functions§
- OH_
NetConn_ ⚠Bind Socket - @brief Binds a socket to the specific network.
- OH_
NetConn_ ⚠Free DnsResult - @brief Free DNS result.
- OH_
NetConn_ ⚠GetAddr Info - @brief Get DNS result with netId.
- OH_
NetConn_ ⚠GetAll Nets - @brief Queries all activated data networks.
- OH_
NetConn_ ⚠GetConnection Properties - @brief Obtains the connection properties of a data network.
- OH_
NetConn_ ⚠GetDefault Http Proxy - @brief Obtains the default http proxy.
- OH_
NetConn_ ⚠GetDefault Net - @brief Obtains the default activated data network.
- OH_
NetConn_ ⚠GetNet Capabilities - @brief Obtains the capabilities of a data network.
- OH_
NetConn_ ⚠HasDefault Net - @brief Checks whether a default activated data network is available.
- OH_
NetConn_ ⚠IsDefault NetMetered - @brief Checks whether metering is enabled for the default data network.
- OH_
NetConn_ ⚠Register AppHttp Proxy Callback - @brief Registers callback to listen for changes to the application-level http proxy.
- OH_
NetConn_ ⚠Register Default NetConn Callback - @brief Registers a callback to listen default network’s status changed.
- OH_
NetConn_ ⚠Register NetConn Callback - @brief Registers callback, used to monitor specific network status.
- OH_
NetConn_ ⚠SetApp Http Proxy - @brief Sets http proxy information to current application.
- OH_
NetConn_ ⚠Unregister AppHttp Proxy Callback - @brief Unregisters a callback function that listens for application-level proxy changes.
- OH_
NetConn_ ⚠Unregister NetConn Callback - @brief Unregisters network status callback.
Type Aliases§
- NetConn_
NetBearer Type - @brief Defines network bearer types.
- NetConn_
NetCap - @brief Defines network capabilities.
- OH_
NetConn_ AppHttp Proxy Change - @brief Callback for application’s http proxy information changed.
- OH_
NetConn_ Custom DnsResolver - @brief Pointer to the custom DNS resolver.
- OH_
NetConn_ NetBlock Status Change - @brief Callback for network blocked status changed.
- OH_
NetConn_ NetCapabilities Change - @brief Callback for network capabilities changed.
- OH_
NetConn_ NetConnection Properties Change - @brief Callback for network connection properties changed.
- OH_
NetConn_ NetLost - @brief Callback for network lost.
- OH_
NetConn_ NetUnavailable - @brief Callback for network unavailable, this function invoked while network can not be available in given timeout.
- OH_
NetConn_ Network Available - @brief Callback for network available.
- sa_
family_ t - socklen_
t