Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an iPhone or iPod Touch communicate with another device in the same room?

I'm new to developing applications for the iPhone and iPod touch. Is it possible to communicate directly between 2 devices in the same room by using WiFi or perhaps even BlueTooth on the iPhone?

I've seen a demo of a fire application where one iPhone "lights" other iPhone when they get close to each other. How is this accomplished?

The point of all this is that I am exploring the option of developing a game that you can play with another person in the same room.

like image 828
Devon Avatar asked Oct 26 '08 14:10

Devon


2 Answers

The iPhone supports Bonjour based service discovery and several applications take advantage of this to do things like syncing with a PC on the same network. Explore the samples and guides in the iPhone SDK. WiTap and BonjourWeb are good examples to start with. NSNetServices and CFNetServices are the APIs you'll be dealing with for Bonjour

like image 195
madninja Avatar answered Oct 23 '22 21:10

madninja


iPhone - iPhone communication can also be accomplished over bluetooth using GameKit.

like image 33
kubi Avatar answered Oct 23 '22 23:10

kubi