卓悦的iPhone [英] bonjour for iphone

查看:154
本文介绍了卓悦的iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道卓悦是否是公共或私有的API?我们可以直接用它在我们的应用程序。

I would like to know whether bonjour is a public or private api?Can we use it in our apps directly.

推荐答案

卓悦是由NSNetServices和CFNetServices的API,你可以阅读更多关于办理<一个href=\"http://developer.apple.com/iphone/library/documentation/Networking/Conceptual/NSNetServiceProgGuide/Introduction.html\">here.这是可可和核心基础接口,并且是公开的对Mac和iPhone应用。正如已经指出的那样,许多应用程序利用这个做iPhone - iPhone网络(游戏套件分层的卓悦的顶部,例如)或Mac - iPhone数据同步(如马库斯Zarra的的ZSync 库)。

Bonjour is handled by the NSNetServices and CFNetServices APIs, which you can read more about here. These are Cocoa and Core Foundation interfaces, and are publicly available for use in Mac and iPhone applications. As has been pointed out, many applications make use of this to do iPhone - iPhone networking (Game Kit is layered on top of Bonjour, for example) or Mac - iPhone data syncing (such as for Marcus Zarra's ZSync library).

比尔Dudney创造了iPhone的精简卓悦服务器类,他描述这里 。我创建了一个匹配的Mac应用程序,与他的测试应用程序的通信,并可以从这里下载。苹果的 WiTap 样品code演示了如何使用卓悦网络两台iPhone一起

Bill Dudney has created a stripped-down Bonjour server class for the iPhone, which he describes here. I created a matching Mac application which communicates with his test application and can be downloaded from here. Apple's WiTap sample code demonstrates how to use Bonjour to network two iPhones together.

我献给我在iPhone上开发的Bonjour联网,为此,课程笔记在VoodooPad格式的here (进入网络类的这种覆盖)。

I devoted a section of the class I teach on iPhone development to Bonjour networking, for which the course notes can be downloaded in VoodooPad format here (go to the Networking class for coverage of this).

这篇关于卓悦的iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆