Skip to Content

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.



Categories

iPod Family iPhone

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

*0 / 3000 Character Maximum

6 Comments

Filter by:
Matt

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 rate up rate down Reply
Matt

How 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 rate up rate down Reply
me

Erica: 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

November 08 2007 at 7:55 PM Report abuse rate up rate down Reply
jjc



For once can't you just report someone else's work without promoting your own at the same time?

November 07 2007 at 5:56 PM Report abuse rate up rate down Reply
jtd

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.

November 07 2007 at 3:35 PM Report abuse rate up rate down Reply
jtd

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.

November 07 2007 at 3:31 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.