Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to choose for data share in same wifi network: Multipeer, Bonjour, Socket connection

I am working on data share over same wifi two/more iOS devices.I have successfully implemented it using multipeer networking and explored it from videos documents.I am just looking on apple Dev for difference between Bonjour vs Multipeer Networking. Is there some one in group who have worked on both and can share me his experience with what to choose. My requirement: Connect two/more iOS device in Same Wifi Network

Automatic Discovering and Connectivity.

Data Size Can be 1 KB to 1 GB.(working on it with MC).

Resume data share when disconnect and connect(looking for it with MC).

Which is more reliable?

What will YOU choose? I am also looking at GCDAsyncSocket(Don't know i m on right direction).

So please share your experience. Thanks.

like image 526
maddy Avatar asked Sep 08 '15 10:09

maddy


People also ask

What is Multipeer connectivity?

The Multipeer Connectivity framework supports the discovery of services provided by nearby devices and supports communicating with those services through message-based data, streaming data, and resources (such as files).

Does WIFI direct work on iPhone?

You can connect an iPhone or iPad directly to your product without using a wireless router or access point.

Does Apple support WIFI Direct?

Select Wi-Fi in the iPhone's settings to turn on the Wi-Fi. Tap Direct-xx-BRAVIA on the iPhone's screen to display the password input screen. Enter the WPA key (password) displayed on the TV screen, then tap Join. Allow a few minutes for the connection to be established, and the Settings screen to appear.


1 Answers

As per documentation says:

The Multipeer Connectivity Framework provides a layer on top of Bonjour that lets you communicate with apps running on nearby devices (over infrastructure Wi-Fi, peer-to-peer Wi-Fi, and either Bluetooth (for iOS) or Ethernet (for OS X) without having to write lots of networking code specific to your app.

like image 63
Daniel Avatar answered Oct 04 '22 06:10

Daniel