nsISocketProvider

IID:4c29772e-cf73-414a-98d9-661761a4511a
Inherits From:nsISupports

Methods

void addToSocket ( PRInt32 family , char* host , PRInt32 port , char* proxyHost , PRInt32 proxyPort , nsFileDescStar* fileDesc , out nsISupports securityInfo ) void newSocket ( PRInt32 family , char* host , PRInt32 port , char* proxyHost , PRInt32 proxyPort , out nsFileDescStar* fileDesc , out nsISupports securityInfo )

void addToSocket ( PRInt32 family , char* host , PRInt32 port , char* proxyHost , PRInt32 proxyPort , nsFileDescStar* fileDesc , out nsISupports securityInfo )

This function is called to allow the socket provider to layer a PRFileDesc on top of another PRFileDesc. For example, SSL via a SOCKS proxy.

Parameters are the same as newSocket with the exception of fileDesc, which is an in-param instead.

Arguments:
family
host
port
proxyHost
proxyPort
fileDesc
securityInfo

void newSocket ( PRInt32 family , char* host , PRInt32 port , char* proxyHost , PRInt32 proxyPort , out nsFileDescStar* fileDesc , out nsISupports securityInfo )

Arguments:
family: The address family for this socket (PR_AF_INET or PR_AF_INET6).
host: The hostname for this connection.
port: The port for this connection.
proxyHost: If non-null, the proxy hostname for this connection.
proxyPort: The proxy port for this connection.
fileDesc: The resulting PRFileDesc.
securityInfo: Any security info that should be associated with fileDesc. This object typically implements nsITransportSecurityInfo.

References

This interface is returned from the following methods:

nsISocketProviderService.getSocketProvider

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com