iPhone Coding: Bonjour wrapper simplifies iPhone implementation
Man, I wish this Bonjour class wrapper had been around a few weeks ago. The CFBonjour Cocoa class simplifies mDNS/Bonjour programming for the iPhone and iPod touch. iPhone developer Ecume pointed me towards this simple class that allows you to publish and subscribe to Bonjour network services with a minimum of programming. He's using this code to write a DropCopy client for iPhone. Hopefully this new step forward will make it a lot easier for more developers to get on the iPhone/Bonjour wagon--the opportunities go far beyond Zune-like file sharing. (Speaking of Zune-like sharing, my new version of SendSong allows you to squirt your music to anyone using SendFile.)
Thanks to Ecume.
Share
Categories
Man, I wish this Bonjour class wrapper had been around a few weeks ago. The CFBonjour Cocoa class simplifies mDNS/Bonjour programming for...
Add a Comment
Okay, I seem to have fixed that problem with the "-multiply_defined suppress" linker option, but now it is saying that ___eprintf is undefined. Passing -lc to the linker does not help. How do I get this to build?
November 14 2007 at 4:33 PM Report abuse Permalink rate up rate down ReplyHow do I get this to build? It seems to require both CoreFoundation and CFNetwork, but if I try to link with both frameworks, the linker (arm-apple-darwin-gcc) complains about certain symbols being defined in two places.
November 14 2007 at 9:36 AM Report abuse Permalink rate up rate down ReplyErica: what is the iphone's bonjour name? Is it "iphone.local" or something? I can't figure it out. If there isn't one, perhaps you could whip up a quick GUI for letting the user set it. Of course we all run Apache on our iphone now right?
-dave
For once can't you just report someone else's work without promoting your own at the same time?
Also, I would REALLY like someone to write a "standard" file Save-As and Open class so that things don't have to go into pre-determined directories.
Safari download plugin would be nice too.
I am REALLY excited about these Bonjour developments. Autodiscovery is a beautiful thing.
When we finally figure out how to make the sound server work without crackly, crappy sound, it'll be great to be able to stream music using something like VLC :) Yes, there are extant browser-based solutions for this, but meh.
Hot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



6 Comments