|PP_Resource(*||Create )(PP_Instance instance)|
|int32_t(*||UpdateNetworkList )(PP_Resource network_monitor, PP_Resource *network_list, struct PP_CompletionCallback callback)|
|PP_Bool(*||IsNetworkMonitor )(PP_Resource resource)|
PPB_NetworkMonitor allows to get network interfaces configuration and monitor network configuration changes.
Permissions: Apps permission
socket with subrule
network-state is required for
UpdateNetworkList(). For more details about network communication permissions, please see: http://developer.chrome.com/apps/app_network.html
Creates a Network Monitor resource.
[in] instance A
PP_Instanceidentifying one instance of a module.
PP_Resourcecorresponding to a network monitor or 0 on failure.
Determines if the specified
resource is a
[in] resource A
Gets current network configuration.
When called for the first time, completes as soon as the current network configuration is received from the browser. Each consequent call will wait for network list changes, returning a new
PPB_NetworkList resource every time.
[in] network_monitor A
PP_Resourcecorresponding to a network monitor.
[out] network_list The
resource with the current state of network interfaces.
PP_CompletionCallbackto be called upon completion.
An int32_t containing an error code from
PP_ERROR_NOACCESSwill be returned if the caller doesn't have required permissions.
The documentation for this struct was generated from the following file: