Bonjour automatically renames DNS-SD instances with conflicting names. E.g if I use two instances of the dns-sd command line tool to register two instances with the same name, the first one will show this:
michi ~$ dns-sd -R test _foo '' 10001
Registering Service test._foo._tcp port 10001
DATE: ---Mon 28 Sep 2015---
1:06:49.909 ...STARTING...
1:06:50.827 Got a reply for service test._foo._tcp.local.: Name now registered and active
While The second one will show this:
michi ~$ dns-sd -R test _foo '' 10002
Registering Service test._foo._tcp port 10002
DATE: ---Mon 28 Sep 2015---
1:06:55.814 ...STARTING...
1:06:56.990 Got a reply for service test (2)._foo._tcp.local.: Name now registered and active
I.e. the instance has been renamed to "test (2)".
I think it would be great if that feature was also added to this library.
Bonjour automatically renames DNS-SD instances with conflicting names. E.g if I use two instances of the
dns-sdcommand line tool to register two instances with the same name, the first one will show this:While The second one will show this:
I.e. the instance has been renamed to "test (2)".
I think it would be great if that feature was also added to this library.