Jump to: navigation, search


964 bytes added, 20:42, 5 October 2006
== ''' Necko =='''
Necko is a platform-independent API for several layers of networking (transport to presentation).
== Short Description ==
Necko is a platform-independent API for several layers of networking (transport to presentation) that is built on XPCOM. It is currently in use in Mozilla and all of its clients.
== Longer Description ==
* Built on XPCOM and NSPR - Not a stand-alone library
* Implemented mainly in C++
* Continually evolving (quite drastically!)
* Originally located at mozilla/network. This version is now completely deprecated.
* Now located at [ mozilla/netwerk].
== Important Interfaces ==
Necko has several important pieces:
* nsIOService
=== nsIOService ===
* Main necko serviceProvides network utility functions.* Manages protocol handlersnsIProtocolHandler implementations.* Creates URI nsIURI objects from URI strings.
=== nsIURI ===
* Represents a URI (scheme://host/path).* Parent class of nsIURL, which is an object that represents implemeted by nsStandardURL, which handles standard URL operations. === nsIProtocolHandler ===* Manages a URIsingle protocol based on a scheme (e.g. http).* Uses nsIURI instance to create nsIChannel. === nsIChannel ===* Uses nsIURI information to create logical connection to resource=== nsIStreamListener ===* getters/setters Listener for parts connection start, arrival of the URIdata, and stop request. === nsITransport ===* Represents physical connection (e.g. file descriptor, socket).

Navigation menu