문제

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.

도움이 되었습니까?

해결책 3

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.

다른 팁

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.

After researching thoroughly, I can't find a way to do this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top