@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 is not necessarily corrolated with whether there is actually a network available -- that's hard to detect without causing the dialer to come up).

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.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com