Struct xpcom::interfaces::nsIDNSRecord [] [src]

#[repr(C)]
pub struct nsIDNSRecord { /* fields omitted */ }

interface nsIDNSRecord : nsISupports

/**
 * nsIDNSRecord
 *
 * this interface represents the result of a DNS lookup.  since a DNS
 * query may return more than one resolved IP address, the record acts
 * like an enumerator, allowing the caller to easily step through the
 * list of IP addresses.
 */

Methods

impl nsIDNSRecord
[src]

[src]

Cast this nsIDNSRecord to one of its base interfaces.

impl nsIDNSRecord
[src]

[src]

/**
     * @return 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
     */

readonly attribute ACString canonicalName;

[src]

/**
     * this function returns the value of the next IP address as a
     * scriptable address and increments the internal address iterator.
     *
     * @param aPort
     *        A port number to initialize the nsINetAddr with.
     *
     * @throws NS_ERROR_NOT_AVAILABLE if there is not another IP address in
     * the record.
     */

nsINetAddr getScriptableNextAddr (in uint16_t aPort);

[src]

/**
     * this function returns the value of the next IP address as a
     * string and increments the internal address iterator.
     *
     * @throws NS_ERROR_NOT_AVAILABLE if there is not another IP address in
     * the record.
     */

ACString getNextAddrAsString ();

[src]

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

boolean hasMore ();

[src]

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

void rewind ();

[src]

/**
     * This function indicates that the last address obtained via getNextAddr*()
     * was not usuable and should be skipped in future uses of this
     * record if other addresses are available.
     *
     * @param aPort is the port number associated with the failure, if any.
     *        It may be zero if not applicable.
     */

void reportUnusable (in uint16_t aPort);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDNSRecord
[src]

IID: nsIID = nsID(4179765422, 50199, 16776, [166, 4, 8, 48, 169, 94, 126, 185])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIDNSRecord
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDNSRecord
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.