WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/network/io-service;1

This component implements the following interfaces:

Properties

PRBool nsIIOService.offline

Returns true if networking is in "offline" mode. When in offline mode, attempts to access the network will fail (although this does not necessarily correlate with whether there is actually a network available -- that's hard to detect without causing the dialer to come up).

Changing this fires observer notifications ... see below.

Methods

InterfaceMethod
nsIIOService PRBool allowPort ( PRInt32 port , char* scheme )
nsIIOService ACString extractScheme ( AUTF8String urlString )
nsIIOService PRUint32 getProtocolFlags ( char* scheme )
nsIIOService nsIProtocolHandler getProtocolHandler ( char* scheme )
nsISupportsWeakReference nsIWeakReference GetWeakReference ( )
nsIIOService nsIChannel newChannel ( AUTF8String spec , char* originCharset , nsIURI baseURI )
nsIIOService nsIChannel newChannelFromURI ( nsIURI URI )
nsIIOService nsIURI newFileURI ( nsIFile file )
nsIIOService nsIURI newURI ( AUTF8String spec , char* originCharset , nsIURI baseURI )
nsIObserver void observe ( nsISupports subject , char* topic , PRUnichar* data )

Reference documentation is generated from Mozilla's source.