使用 Bonjour 或 GameKit 通信和交换数据?

发布于 2025-01-01 12:23:59 字数 219 浏览 3 评论 0原文

我们使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

快乐很简单 2025-01-08 12:23:59

没关系。团队决定使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文