/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** *nsISocketProvider
*/
[scriptable, uuid(508d5469-9e1e-4a08-b5b0-7cfebba1e51a)]
interface nsISocketProvider : nsISupports
{ /** *newSocket * *@paramaFamily *Theaddressfamilyforthissocket(PR_AF_INETorPR_AF_INET6). *@paramaHost *Theoriginhostnameforthisconnection. *@paramaPort *Theoriginportforthisconnection. *@paramaProxyHost *Ifnon-null,theproxyhostnameforthisconnection. *@paramaProxyPort *Theproxyportforthisconnection. *@paramaFlags *Controlflagsthatgovernthisconnection(seebelow.) *@paramaTlsFlags *Anopaqueflagsfornon-standardbehavioroftheTLSsystem. *Itisunlikelythiswillneedtobesetoutsideoftelemetry *studiesrelatingtotheTLSimplementation. *@paramaFileDesc *TheresultingPRFileDesc. *@paramaTLSSocketControl *TLSsocketcontrolobjectthatshouldbeassociatedwith *aFileDesc,ifapplicable.
*/
[noscript] void newSocket(in long aFamily,
in string aHost,
in long aPort,
in nsIProxyInfo aProxy,
in const_OriginAttributesRef aOriginAttributes,
in unsignedlong aFlags,
in unsignedlong aTlsFlags,
out PRFileDescStar aFileDesc,
out nsITLSSocketControl aTLSSocketControl);
/** *addToSocket * *Thisfunctioniscalledtoallowthesocketprovidertolayera *PRFileDescontopofanotherPRFileDesc.Forexample,SSLviaaSOCKS *proxy. * *ParametersarethesameasnewSocketwiththeexceptionofaFileDesc, *whichisanin-paraminstead.
*/
[noscript] void addToSocket(in long aFamily,
in string aHost,
in long aPort,
in nsIProxyInfo aProxy,
in const_OriginAttributesRef aOriginAttributes,
in unsignedlong aFlags,
in unsignedlong aTlsFlags,
in PRFileDescStar aFileDesc,
out nsITLSSocketControl aTLSSocketControl);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.