There are several compelling reasons for Bonjour to be a system
service, instead of being embedded in applications. The greatest
benefit is that Bonjour uses aggressive caching to reduce network
traffic. If every application uses its own cache, this benefit is
reduced. In addition, Bonjour coalesces announcements for service
registrations into single messages to reduce the packet rate. This
is not possible if each app has its own copy. Also, if future
versions of the system service are released, all applications benefit
from the increased performance, bug fixes, new features, etc.
Without a common system service, each app would have to rev.
On Jun 10, 2005, at 7:19 AM, Tom Otvos wrote:
I would like to second Krzys' concerns here. In our case, having a
system service be installed on client workstations would be near
impossible to justify with our customers. In some cases, the client
machines are running Terminal Server sessions, and the hoops we
have to jump through to get anything installed is, well...
If the clients are running terminal sessions, how did your software
get installed in the first place? Is there a reason that Bonjour
couldn't be installed in the same manner?
Nonetheless, when you say it is "possible but not recommended", are
we looking at a whole lot of pain to make it happen because that
was a configuration you had not considered? Or will it be rather
straightforward? It looks like the dnssd DLL uses sockets to talk
to the local service -- would there be major code hacking involved
to short-circuit all this in a self-contained binary?
You can check out the mDNSResponder code from Darwin and add it
directly into your app, and it will work (though less efficiently),
even if the system service was installed by another application.
This would require a moderate amount of work, and is more error prone
than using the supported APIs, but the option is available if you
absolutely cannot use the system service.
Regards,
Kiren
--
-- Tom Otvos
"Don't think you are. Know you are." - Morpheus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden