Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
nsProxyInfo Class Reference

#include <nsProxyInfo.h>

Inheritance diagram for nsProxyInfo:
Inheritance graph
[legend]
Collaboration diagram for nsProxyInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIPROXYINFO const
nsCString
Host ()
PRInt32 Port ()
const char * Type ()
PRUint32 Flags ()

Public Attributes

readonly attribute AUTF8String host
 This attribute specifies the hostname of the proxy server.
readonly attribute long port
 This attribute specifies the port number of the proxy server.
readonly attribute ACString type
 This attribute specifies the type of the proxy server as an ASCII string.
readonly attribute unsigned long flags
 This attribute specifies flags that modify the proxy type.
readonly attribute unsigned long failoverTimeout
 This attribute specifies the failover timeout in seconds for this proxy.
attribute nsIProxyInfo failoverProxy
 This attribute specifies the proxy to failover to when this proxy fails.
const unsigned short TRANSPARENT_PROXY_RESOLVES_HOST = 1 << 0
 This flag is set if the proxy is to perform name resolution itself.

Private Member Functions

 nsProxyInfo (const char *type=nsnull)
 ~nsProxyInfo ()

Private Attributes

const char * mType
nsCString mHost
PRInt32 mPort
PRUint32 mFlags
PRUint32 mTimeout
nsProxyInfomNext

Friends

class nsProtocolProxyService

Detailed Description

Definition at line 56 of file nsProxyInfo.h.


Constructor & Destructor Documentation

nsProxyInfo::nsProxyInfo ( const char *  type = nsnull) [inline, private]

Definition at line 73 of file nsProxyInfo.h.

nsProxyInfo::~nsProxyInfo ( ) [inline, private]

Definition at line 81 of file nsProxyInfo.h.


Member Function Documentation

Definition at line 68 of file nsProxyInfo.h.

{ return mFlags; }
NS_DECL_ISUPPORTS NS_DECL_NSIPROXYINFO const nsCString& nsProxyInfo::Host ( ) [inline]

Definition at line 65 of file nsProxyInfo.h.

{ return mHost; }
PRInt32 nsProxyInfo::Port ( ) [inline]

Definition at line 66 of file nsProxyInfo.h.

{ return mPort; }
const char* nsProxyInfo::Type ( ) [inline]

Definition at line 67 of file nsProxyInfo.h.

{ return mType; }

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class nsProtocolProxyService [friend]

Definition at line 71 of file nsProxyInfo.h.


Member Data Documentation

This attribute specifies the proxy to failover to when this proxy fails.

Definition at line 91 of file nsIProxyInfo.idl.

readonly attribute unsigned long nsIProxyInfo::failoverTimeout [inherited]

This attribute specifies the failover timeout in seconds for this proxy.

If a nsIProxyInfo is reported as failed via nsIProtocolProxyService:: getFailoverForProxy, then the failed proxy will not be used again for this many seconds.

Definition at line 86 of file nsIProxyInfo.idl.

readonly attribute unsigned long nsIProxyInfo::flags [inherited]

This attribute specifies flags that modify the proxy type.

The value of this attribute is the bit-wise combination of the Proxy Flags defined below. Any undefined bits are reserved for future use.

Definition at line 78 of file nsIProxyInfo.idl.

readonly attribute AUTF8String nsIProxyInfo::host [inherited]

This attribute specifies the hostname of the proxy server.

Definition at line 53 of file nsIProxyInfo.idl.

Definition at line 89 of file nsProxyInfo.h.

Definition at line 87 of file nsProxyInfo.h.

Definition at line 91 of file nsProxyInfo.h.

Definition at line 88 of file nsProxyInfo.h.

Definition at line 90 of file nsProxyInfo.h.

const char* nsProxyInfo::mType [private]

Definition at line 86 of file nsProxyInfo.h.

readonly attribute long nsIProxyInfo::port [inherited]

This attribute specifies the port number of the proxy server.

Definition at line 58 of file nsIProxyInfo.idl.

const unsigned short nsIProxyInfo::TRANSPARENT_PROXY_RESOLVES_HOST = 1 << 0 [inherited]

This flag is set if the proxy is to perform name resolution itself.

If this is the case, the hostname is used in some fashion, and we shouldn't do any form of DNS lookup ourselves.

Definition at line 104 of file nsIProxyInfo.idl.

readonly attribute ACString nsIProxyInfo::type [inherited]

This attribute specifies the type of the proxy server as an ASCII string.

Some special values for this attribute include (but are not limited to) the following: "http" HTTP proxy (or SSL CONNECT for HTTPS) "socks" SOCKS v5 proxy "socks4" SOCKS v4 proxy "direct" no proxy "unknown" unknown proxy (see nsIProtocolProxyService::resolve)

Definition at line 71 of file nsIProxyInfo.idl.


The documentation for this class was generated from the following file: