Merge changes I488cc768,Icb9ed7ae,Ib18c3afb,Iba293b47,Ied55829c, ...
* changes: Return ERROR_NO_ANSWERS for replies with no answer Allow resolving previously undiscovered services Use resolveInstanceName in NsdService Add missing SRV/TXT/address records to responses Update record TTL in set/add methods Clear inetaddress fields when removing the record
This commit is contained in:
@@ -763,6 +763,7 @@ public class NsdService extends INsdManager.Stub {
|
||||
final MdnsSearchOptions options = MdnsSearchOptions.newBuilder()
|
||||
.setNetwork(info.getNetwork())
|
||||
.setIsPassiveMode(true)
|
||||
.setResolveInstanceName(info.getServiceName())
|
||||
.build();
|
||||
mMdnsDiscoveryManager.registerListener(
|
||||
resolveServiceType, listener, options);
|
||||
@@ -775,7 +776,7 @@ public class NsdService extends INsdManager.Stub {
|
||||
}
|
||||
|
||||
maybeStartDaemon();
|
||||
if (resolveService(id, args.serviceInfo)) {
|
||||
if (resolveService(id, info)) {
|
||||
clientInfo.mResolvedService = new NsdServiceInfo();
|
||||
storeLegacyRequestMap(clientId, id, clientInfo, msg.what);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user