nsISocketTransportService

IID:7B19AC06-A5FB-11D9-9F82-0011246ECD24
Inherits From:nsISupports

This interface is intended to be used as a service. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/network/socket-transport-service;1"].
            getService(Components.interfaces.nsISocketTransportService);

This interface is implemented by the following components:


Methods

nsISocketTransport createTransport ( arrayof char* socketTypes , PRUint32 typeCount , AUTF8String host , PRInt32 port , nsIProxyInfo proxyInfo )

nsISocketTransport createTransport ( arrayof char* socketTypes , PRUint32 typeCount , AUTF8String host , PRInt32 port , nsIProxyInfo proxyInfo )

Creates a transport for a specified host and port.

Arguments:
socketTypes: array of socket type strings. null if using default socket type.
typeCount: specifies length of socketTypes.
host: specifies the target hostname or IP address literal of the peer for this socket.
port: specifies the target port of the peer for this socket.
proxyInfo: 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).

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com