3

我正在听 Bounjour 上的 WWDC2012 Session 707。在会议开始的 15:25,苹果工程师解释说,您需要在发布之前向 IANA 注册您的 bonjour 服务名称。我发现演示文稿中的链接不起作用,并找到了这个替换:

http://www.iana.org/form/ports-services

其中一些领域看起来很吓人。我真的需要填写服务名称请求来发布我的 bonjour 应用程序吗?

4

1 回答 1

2

In the interest of preventing every iOS developer going out and creating arbitrary (and possibly conflicting) service names and ports for their own applications, Apple rightly stresses that you should go through the approval process. Remember there are services on all kinds of platforms that depend on mDNS.

In practice, if you can find a port that's used by some extremely niche application that nobody's ever heard of, then you can get away without registering. The implication of this is that no RFC-compliant mDNS responders will recognize or honour the port or service name you're advertising as it's not part of the 'prescribed' IANA list. But as long as you don't create lots of unwanted noise (e.g. advertising your service as _http._tcp when it is something else entirely) then you should be OK.

于 2013-05-20T14:08:41.233 回答