iDevGames Forums
Getting the name of other service in Bonjour - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: Getting the name of other service in Bonjour (/thread-9184.html)



Getting the name of other service in Bonjour - monteboyd - Jul 18, 2011 04:26 PM

I have a two-player over Wifi game up and running based off the WiTap sample code: http://developer.apple.com/library/ios/#samplecode/WiTap/Introduction/Intro.html

I would like to display a VS screen before the game starts with both service names. Obviously it is trivial to grab the other device service name on the device that does the choosing from the list - but how do I have the selected device know who selected it?

Basically it's the same problem this person has:
http://www.iphonedevsdk.com/forum/iphone-sdk-development/28262-wifi-connection-reading-name.html

But they don't report finding a solution so I thought I'd ask.

Thanks!