com.apple.dnssd
Interface ResolveListener
- All Superinterfaces:
- BaseListener
public interface ResolveListener
- extends BaseListener
A listener that receives results from DNSSD.resolve(int, int, java.lang.String, java.lang.String, java.lang.String, com.apple.dnssd.ResolveListener)
.
Method Summary |
void |
serviceResolved(DNSSDService resolver,
int flags,
int ifIndex,
java.lang.String fullName,
java.lang.String hostName,
int port,
TXTRecord txtRecord)
Called when a service has been resolved. |
serviceResolved
void serviceResolved(DNSSDService resolver,
int flags,
int ifIndex,
java.lang.String fullName,
java.lang.String hostName,
int port,
TXTRecord txtRecord)
- Called when a service has been resolved.
- Parameters:
resolver
- The active resolver object.
flags
- Currently unused, reserved for future use.
fullName
- The full service domain name, in the form <servicename>.<protocol>.<domain>.
(Any literal dots (".") are escaped with a backslash ("\."), and literal
backslashes are escaped with a second backslash ("\\"), e.g. a web server
named "Dr. Pepper" would have the fullname "Dr\.\032Pepper._http._tcp.local.").
This is the appropriate format to pass to standard system DNS APIs such as
res_query(), or to the special-purpose functions included in this API that
take fullname parameters.
hostName
- The target hostname of the machine providing the service. This name can
be passed to functions like queryRecord() to look up the host's IP address.
port
- The port number on which connections are accepted for this service.
txtRecord
- The service's primary txt record.