Struct xpcom::interfaces::nsIDNSServiceDiscovery [] [src]

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

interface nsIDNSServiceDiscovery : nsISupports

/**
 * The interface for DNS service discovery/registration/resolve
 */

Methods

impl nsIDNSServiceDiscovery
[src]

[src]

Cast this nsIDNSServiceDiscovery to one of its base interfaces.

impl nsIDNSServiceDiscovery
[src]

[src]

/**
   * Browse for instances of a service.
   * @param   aServiceType
   *          the service type to be discovered, E.g. "_http._tcp".
   * @param   aListener
   *          callback interface for discovery notifications.
   * @return  An object that can be used to cancel the service discovery.
   */

nsICancelable startDiscovery (in AUTF8String aServiceType, in nsIDNSServiceDiscoveryListener aListener);

[src]

/**
   * Register a service that is discovered via |startDiscovery| and |resolveService| calls.
   * @param   aServiceInfo
   *          the service information to be registered.
   *          |port| and |aServiceType| are required attributes.
   * @param   aListener
   *          callback interface for registration notifications.
   * @return  An object that can be used to cancel the service registration.
   */

nsICancelable registerService (in nsIDNSServiceInfo aServiceInfo, in nsIDNSRegistrationListener aListener);

[src]

/**
   * Resolve a service name discovered via |startDiscovery| to a target host name, port number.
   * @param   aServiceInfo
   *          the service information to be registered.
   *          |serviceName|, |aServiceType|, and |domainName| are required attributes as reported to the |onServiceFound| callback.
   * @param   aListener
   *          callback interface for registration notifications.
   */

void resolveService (in nsIDNSServiceInfo aServiceInfo, in nsIDNSServiceResolveListener aListener);

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 nsIDNSServiceDiscovery
[src]

IID: nsIID = nsID(1686604187, 48817, 17754, [186, 101, 228, 253, 70, 80, 102, 215])

[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 nsIDNSServiceDiscovery
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDNSServiceDiscovery
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.