Search code examples
c++bonjourzeroconf

How to Know when device is removed from network Using Bonjour C library


I am using DNSServiceDiscovery C Library Bonjour to detect Camera and Printer.I am Using Windows 7 and Visual 2010.

http://developer.apple.com/library/mac/#documentation/Networking/Reference/DNSServiceDiscovery_CRef/dns_sd_h/index.html

I am able to detect the Camera and Printer. Now I am wondering how to Get notification when device is removed from the network.

Suggest me how to implement this feature.


Solution

  • There is no way in Bonjour Api to know when the device is removed.

    If the device exposes some service and client program is synch up with that, probably we can know about it.I am doing the same for my application.