Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 869
Vikram Ranabhatt Avatar asked Nov 20 '25 17:11

Vikram Ranabhatt


1 Answers

If you keep your DNSServiceBrowse operation running, you will eventually get notified when one of the previously-found services appears to no longer be present. This isn't an instantaneous thing, however. Keep in mind that the primary use case for Browse is to populate a UI from which the user can select a service.

like image 175
Paul Lalonde Avatar answered Nov 22 '25 06:11

Paul Lalonde



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!