Post

Replies

Boosts

Views

Activity

Deprecation of NSNetService and alternatives
I've been working on a P2P networking framework recently (sending data to and from iPhones without needing a connection to the internet), starting with the numerous online tutorials on Multipeer Connectivity. I've been writing things up now using NSNetService due to the limitations of MPC. Looking at the developer pages, NSNetService is now deprecated. I'm a bit new to the networking side of Swift and iOS development, so I wanted to post a question here hoping to get some more information about what's going on/what's out there. I have three main questions about this: Why was NSNetService deprecated? Will MPC be expanded to be more configurable to accomodate the deprecation? What alternatives are there to send data over a local network without accessing the internet? I've looked at the Network framework and it seems promising, but not sure if its the best route to take. I'm moreso asking just for overall knowledge of the networking ecosystem than a specific answer, so any clarifying context is helpful.
1
1
3.4k
Jun ’21