iPhoto Beaming: Under the hood
Earlier today, Steve Sande showed you how to beam photos using the new iPhoto app. Now it’s my turn, and I’ll briefly discuss what’s actually happening when you use this new feature.
Beaming relies on two devices sharing the same Wi-Fi network. That’s because the communication channel seems to be built on Zero Configuration (Bonjour) networking. Bonjour, Apple’s branding for zeroconf/mDNS device discovery, allows computers and mobile devices to advertise services on a shared network. This lets Macs, PCs and iOS devices easily connect to printers, AirPlay servers, and so forth.
iPhoto Beaming uses a UDP service called _mobileiphoto._udp. Devices that are ready to receive beams announce themselves in an easily discoverable way. A service appears on-network as soon as you enable Wireless Beaming.
To beam, a source device searches for possible recipients. Once detected, iPhoto offers to connect to them. It negotiates a handshake, asks for permission at the far end to send data, and then transfers photos.
The Bonjour device name seems to be made up of a hash filed by a local file name. This is quite similar to what goes on with GameKit peer-to-peer connectivity. Only properly hashed identifiers are recognized as valid destinations. To spoof iPhoto, a Mac client would need to provide a valid hash in this way. And, no, I was unable to get my GameKit hashing to match the iPhoto beaming hash in my initial attempts. Possibly operator error on my part, possibly they just used a different approach.
What’s more, the executable seems to be built using GKSession objects, so there’s apparently some common genetic background between the two approaches. I didn’t find other GameKit classes, so not all that much commonality.
Before jumping into iPhoto, I had been hoping this would be some kind of AirDrop implementation that might later open up to other apps — but from what my quick dive indicates, it looks like this is proprietary to iPhoto and not going to become a general solution yet.
To summarize, the iPhoto beaming looks, at least from my initial scans, to be a jury-rigged solution proprietary to this one title rather than a general iOS file-sharing solution. The app-specific Bonjour name (mobileiphoto) and lack of custom framework classes suggest this isn’t the future, it’s just iPhoto.
You may also like to check out:
- How To Jailbreak iOS 6.1.3 On iPhone 4, iPod touch 4 and iPhone 3GS Using Redsn0w
- How To Jailbreak iOS 6.0 to 6.1.2 Untethered On iPhone 4,3GS, iPod touch 4 Using Sn0wbreeze 2.9.11
- How To Jailbreak iOS 6.1.2 Untethered On iPhone 5,4S, iPad, iPod touch Using Evasi0n 1.5
- How To Jailbreak iOS 6 With Official Cydia On iPhone 4, iPhone 3GS And iPod touch 4G Using Redsn0w 0.9.15b1
- How To Downgrade iPhone 4, iPhone 3GS, iPod touch 4G From iOS 6 To 5.1.1 Using Redsn0w