Does the iPhone support ad-hoc network mode? Can iPhones connect to one another without requiring an existing network? If so, how can I create an Ad Hoc network in my app?>
What you are describing is called Wifi peer-to-peer which iOS devices do not support at the moment.