问题描述
使用MCSession
,会话只能将已连接8个设备它:
我需要8个以上的同行.我碰到了这个苹果论坛开发线程,有人问了类似的问题,还有一位苹果工程师名为 eskimo 的人表示,可以使用NSNetService
及其includesPeerToPeer flag
或Bonjour 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大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!