Multipeer connectivity in iOS

266 views Asked by At

Let's say I have a windows PC which is connected wired to enterprise network. This PC broadcasting a text file using Bonjour. I want to be able to receive this file when iPhone connects on enterprises network wifi. Let's say I use push model so the PC broadcasting from a service running on it.

My question: may I use multipeer connectivity framework in my iPhone app?

1

There are 1 answers

0
Thomas Deniau On BEST ANSWER

To discover Bonjour services on the network from the phone, use NSNetServiceBrowser. Multipeer Connectivity will not let you advertise a service from a Windows machine.

Once you have discovered your service with NSNetServiceBrowser, you can setup a session to it using the normal network mechanisms (for example, by starting a small HTTP server on your Windows machine).