Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
nsDNSRecord Class Reference
Inheritance diagram for nsDNSRecord:
Inheritance graph
[legend]
Collaboration diagram for nsDNSRecord:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIDNSRECORD 
nsDNSRecord (nsHostRecord *hostRecord)
PRNetAddr getNextAddr (in PRUint16 aPort)
 this function copies the value of the next IP address into the given PRNetAddr struct and increments the internal address iterator.
ACString getNextAddrAsString ()
 this function returns the value of the next IP address as a string and increments the internal address iterator.
boolean hasMore ()
 this function returns true if there is another address in the record.
void rewind ()
 this function resets the internal address iterator to the first address in the record.

Public Attributes

readonly attribute ACString canonicalName

Private Member Functions

virtual ~nsDNSRecord ()

Private Attributes

nsRefPtr< nsHostRecordmHostRecord
voidmIter
PRBool mDone

Detailed Description

Definition at line 67 of file nsDNSService2.cpp.


Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_NSIDNSRECORD nsDNSRecord::nsDNSRecord ( nsHostRecord hostRecord) [inline]

Definition at line 73 of file nsDNSService2.cpp.

        : mHostRecord(hostRecord)
        , mIter(nsnull)
        , mDone(PR_FALSE) {}
virtual nsDNSRecord::~nsDNSRecord ( ) [inline, private, virtual]

Definition at line 79 of file nsDNSService2.cpp.

{}

Member Function Documentation

this function copies the value of the next IP address into the given PRNetAddr struct and increments the internal address iterator.

Parameters:
aPortA port number to initialize the PRNetAddr with.
Exceptions:
NS_ERROR_NOT_AVAILABLEif there is not another IP address in the record.
ACString nsIDNSRecord::getNextAddrAsString ( ) [inherited]

this function returns the value of the next IP address as a string and increments the internal address iterator.

Exceptions:
NS_ERROR_NOT_AVAILABLEif there is not another IP address in the record.
boolean nsIDNSRecord::hasMore ( ) [inherited]

this function returns true if there is another address in the record.

void nsIDNSRecord::rewind ( ) [inherited]

this function resets the internal address iterator to the first address in the record.


Member Data Documentation

readonly attribute ACString nsIDNSRecord::canonicalName [inherited]
Returns:
the canonical hostname for this record. this value is empty if the record was not fetched with the RESOLVE_CANONICAL_NAME flag.

e.g., www.mozilla.org --> rheet.mozilla.org

Definition at line 58 of file nsIDNSRecord.idl.

Definition at line 83 of file nsDNSService2.cpp.

Definition at line 81 of file nsDNSService2.cpp.

Definition at line 82 of file nsDNSService2.cpp.


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