NSD Device Lost Message Not Received on Disabling Wifi

旧城冷巷雨未停 提交于 2019-12-06 07:16:32

问题


I have written a sample app using NSD as explained here.

The app works fine, it discovers services, resolve services and also report services lost if that service is unregistered.

But in a user scenario like:

  1. If NSD app is running on a device named A and has registered a service on A
  2. while few other devices named B, C, D are listening to this service.
  3. service is discovered by B, C, D - expected behavior
  4. now wifi is switched off an device A.
  5. I am expecting to receive a service lost message on devices B, C, D, but I am not getting it?

If I do not switch off wifi on A, but just close the NSD app that unregisters the running service, I receive the service lost message on devices B, C, D.

What could be the reason for this? Is this a known bug with NSD? Or this is the way NSD behaves?

来源:https://stackoverflow.com/questions/18358324/nsd-device-lost-message-not-received-on-disabling-wifi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!