New nsISocketTransportService.createTransport signature
nsISocketTransportService.createTransport
now takes an additional nsIDNSRecord
parameter:
/**
* Creates a transport for a specified host and port.
*
* @param aSocketTypes
* array of socket type strings. Empty array if using default
* socket type.
* @param aHost
* specifies the target hostname or IP address literal of the peer
* for this socket.
* @param aPort
* specifies the target port of the peer for this socket.
* @param aProxyInfo
* specifies the transport-layer proxy type to use. null if no
* proxy. used for communicating information about proxies like
* SOCKS (which are transparent to upper protocols).
* @param aDnsRecord
* the dns record to be used for the connection
*
* @see nsIProxiedProtocolHandler
* @see nsIProtocolProxyService::GetProxyInfo
*
* NOTE: this function can be called from any thread
*/
nsISocketTransport createTransport(in Array<ACString> aSocketTypes,
in AUTF8String aHost,
in long aPort,
in nsIProxyInfo aProxyInfo,
in nsIDNSRecord dnsRecord);
dnsRecord
can be null
.