使用 Bonjour 或 GameKit 通信和交换数据?
我们使用 GameKit 在 iPhone 和 iPad 等 iOS 设备之间以点对点模式进行通信和交换数据。我的理解是 GameKit 是建立在 Bonjour 之上的,但我对 Bonjour 并不熟悉。我们可以使用 Bonjour 代替 GameKit 来完成相同的通信/数据交换任务吗?如果是这样,使用 Bonjour 有优势吗?我们是否应该坚持使用 GameKit,因为它提供了高级 API,而不是深入该堆栈?谢谢。
We are using GameKit to communicate and exchange data in peer-to-peer mode between iOS devices like iPhones and iPads. My understanding is that GameKit is built on top of Bonjour, but I am not familiar with Bonjour. Can we use Bonjour for the same communication/data exchange tasks instead of GameKit? If so, is there an advantage of using Bonjour? Should we stick with GameKit since it offers a high-level API rather than going down that stack? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系。团队决定使用 Node.js 和 JSON 来交换数据,并避免使用 GameKit/Bonjour。我们使用 GameKit 达到了 16 个对等点的限制,并且通过互联网提供了更多优势。
Never mind. The team decided to use node.js and JSON to exchange data and avoid GameKit/Bonjour. We hit a 16 peer limitation with GameKit and going through the Internet offers more advantages.