nsIIOService2
| IID: | d44fe6d4-ee35-4789-886a-eb8f0554d04e |
| Inherits From: | nsIIOService |
nsIIOService2 extends nsIIOService with support for automatic online/offline management.
This interface is intended to be used as a service. To create an object implementing this interface:
var obj = Components.classes["@mozilla.org/network/io-service;1"].
getService(Components.interfaces.nsIIOService2);Properties
PRBool manageOfflineStatus
While this is set, IOService will monitor an nsINetworkLinkService (if available) and set its offline status to "true" whenever isLinkUp is false.
Applications that want to control changes to the IOService's offline status should set this to false, watch for network:link-status-changed broadcasts, and change nsIIOService::offline as they see fit. Note that this means during application startup, IOService may be offline if there is no link, until application code runs and can turn off this management.
Reference documentation is generated from Mozilla's source.
