到两台iPhone之间共享数据的API / iPod的触摸/ ipad公司? (除的GameKit) [英] Any API to share data between two iphones/ipod touches/ipads? (Except GameKit)

查看:149
本文介绍了到两台iPhone之间共享数据的API / iPod的触摸/ ipad公司? (除的GameKit)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有任何框架/ API轻松地找到它们之间的其他设备共享数据?

is there any framework/api to easily to find other devices and share data between them?

不是的GameKit请。和Bonjour将是巨大的,但它是复杂build..Mayby有使用任何的Bonjour API?

Not gamekit please. And bonjour would be great but it is to complex to build..Mayby there's any API that uses Bonjour?

编辑:有没有基于任何的Bonjour API /框架

Is there any API/Framework that is based on Bonjour?

推荐答案

我知道你已经驳回卓悦顾左右而言他,但你也许能够利用一个包装类,使之更易于管理。例如,比尔Dudney创造了他样本卓悦iPhone应用程序在这样的包装(形容这里)。我生成这个示例应用程序的 Mac版向您展示如何通信iPhone和桌面PC之间。您可以在上的iTunes U我的课< /一>,以及对等网络通信的一些其它实例。

I know that you've dismissed Bonjour outright, but you might be able to leverage a wrapper class to make it more manageable. For example, Bill Dudney created such a wrapper within his sample Bonjour iPhone application (described here). I generated a Mac version of this sample application to show how you can communicate between the iPhone and a desktop PC. You can see this in action in the Networking session of my class on iTunes U, as well as some other examples of peer-to-peer communication.

有关设备设备发现和通信,卓悦什么的基础上(如的GameKit)将是您最好的选择。卓悦是做当地的iPhone手机通过蓝牙发现的唯一途径,例如(再次的GameKit利用这一点)。它还与WiFi或蓝牙透明地工作,这样你就可以创建通讯code是网络无关的。

For device-device discovery and communication, Bonjour or something based on it (like GameKit) is going to be your best choice. Bonjour is the only way to do discovery of local iPhones over Bluetooth, for example (again, GameKit leverages this). It also works transparently with WiFi or Bluetooth, so you can create communication code that is network-agnostic.

的GameKit提供上述的Bonjour一个很好的抽象层,所以我不会马上拒绝。您可以决定不使用系统提供的GKPeerPickerController如果你关注这个用户界面。

GameKit provides a nice abstraction layer above Bonjour, so I wouldn't immediately reject it. You can decide to not use the system-supplied GKPeerPickerController if you were concerned about the user interface of this.

这篇关于到两台iPhone之间共享数据的API / iPod的触摸/ ipad公司? (除的GameKit)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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