问题
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