Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).
To use this service, simply call
nsISupports.QueryInterface() on the
nsIIOService you plan to use for the connection, to get access to the I/O service's implementation of nsISpeculativeConnect. Then call
speculativeConnect() to let the networking layer know what you might be doing in the future.
Call this method to hint to the networking layer that a new transaction for the specified URI is likely to happen soon. The code implementing this method may use this information to start a TCP and/or SSL level handshake for that resource immediately so that it is ready (or at least in the process of becoming ready) when the transaction is actually submitted.
No obligation is taken on by the implementer, nor is the submitter obligated to actually open the new channel.
void speculativeConnect( in nsIURI aURI, in nsIInterfaceRequestor aCallbacks, in nsIEventTarget aTarget );
- The URI of the hinted transaction.
- Any security callbacks for use with SSL for interfaces such as
nsIBadCertListener. May be
- The thread on which the release of the callbacks will occur. May be
nullfor "any thread".