Swift-Bonjour NSNetServiceBrowser的对等限制是否比MCSession的8大? [英] Swift -Does the Bonjour NSNetServiceBrowser have a peer limit larger then MCSession's 8?

查看:229
本文介绍了Swift-Bonjour NSNetServiceBrowser的对等限制是否比MCSession的8大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用MCSession,会话只能将已连接8个设备它:

会话目前最多可支持8个对等方,包括本地对等方

Sessions currently support up to 8 peers, including the local peer

我需要8个以上的同行.我碰到了这个苹果论坛开发线程,有人问了类似的问题,还有一位苹果工程师名为 eskimo 的人表示,可以使用NSNetService及其includesPeerToPeer flagBonjour browser来实现.

I need way more than 8 peers. I came across this apple forums dev thread where someone asked a similar question and an Apple engineer named eskimo said that it can be achieved using NSNetService and its includesPeerToPeer flag or the Bonjour browser.

我已经看到很多人问如何绕过MCSession 8个同级限制的问题,但是我还没有看到有人推荐 eskimo 的建议.我也没有找到任何带有示例代码的博客文章来支持他所说的内容.他的答案发布于19/6/5,所以是最近的事情.

I've seen a bunch of people ask questions on how to get around the MCSession 8 peer limit but I haven't seen anyone recommend what eskimo recommended. I also haven't found any blog posts with sample code to support what he said. His answer was posted on 6/5/19 so it's very recent.

如果可能的话,对等限制是多少?

推荐答案

使用Bonjour似乎没有限制.我在在这里找到答案. eskimo 暗示了同一件事.

Using Bonjour there doesn't seem to be a limit. I found the answer here. eskimo insinuated the same thing.

这篇关于Swift-Bonjour NSNetServiceBrowser的对等限制是否比MCSession的8大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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