com.apple.dnssd
Interface DomainListener

All Superinterfaces:
BaseListener

public interface DomainListener
extends BaseListener

A listener that receives results from DNSSD.enumerateDomains(int, int, com.apple.dnssd.DomainListener).


Method Summary
 void domainFound(DNSSDService domainEnum, int flags, int ifIndex, java.lang.String domain)
          Called to report discovered domains.
 void domainLost(DNSSDService domainEnum, int flags, int ifIndex, java.lang.String domain)
          Called to report that a domain has disappeared.
 
Methods inherited from interface com.apple.dnssd.BaseListener
operationFailed
 

Method Detail

domainFound

void domainFound(DNSSDService domainEnum,
                 int flags,
                 int ifIndex,
                 java.lang.String domain)
Called to report discovered domains.

Parameters:
domainEnum - The active domain enumerator.
flags - Possible values are: DNSSD.MORE_COMING, DNSSD.DEFAULT

ifIndex - Specifies the interface on which the domain exists. (The index for a given interface is determined via the if_nametoindex() family of calls.)

domain - The name of the domain.

domainLost

void domainLost(DNSSDService domainEnum,
                int flags,
                int ifIndex,
                java.lang.String domain)
Called to report that a domain has disappeared.

Parameters:
domainEnum - The active domain enumerator.
flags - Possible values are: DNSSD.MORE_COMING, DNSSD.DEFAULT

ifIndex - Specifies the interface on which the domain exists. (The index for a given interface is determined via the if_nametoindex() family of calls.)

domain - The name of the domain.