Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Loss of service discovery #17

Closed
chjan opened this issue Jun 14, 2017 · 2 comments
Closed

Loss of service discovery #17

chjan opened this issue Jun 14, 2017 · 2 comments

Comments

@chjan
Copy link

chjan commented Jun 14, 2017

This is not a bug report. We find this api is working fine from a small footprint. There is one question related to Bonjour in general: What is best practice for discovering loss of services? In an embedded system of dedicated services, I need to discover loss of service as fast as possible. Does this imply a need to run a rediscovery on suitable intervals (10sec or so), or is there a setting to manipulate in order to achieve something similar?

@andriydruk
Copy link
Owner

andriydruk commented Jun 15, 2017

It depends on what "loss" you mean:

  • If device makes unregister via mDNSResponder, then it should always work properly.
  • If device just kills the process or powered off, then it's a bad idea to use Bonjour. As I understand mDNSResponder contains some cache and device will be shown in browse some time

If you need more low-level API, take a look at official Bonjour Documentation
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/NetServices/Introduction.html

@chjan
Copy link
Author

chjan commented Jul 24, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants