Swift -Does the Bonjour NSNetServiceBrowser have a peer limit larger then MCSession's 8?

耗尽温柔 提交于 2020-03-04 15:35:14

问题


Using a MCSession, the session can only have 8 devices connected to it:

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

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.

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.

If this is possible what is the peer limit if there is one?


回答1:


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



来源:https://stackoverflow.com/questions/60349499/swift-does-the-bonjour-nsnetservicebrowser-have-a-peer-limit-larger-then-mcsess

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!