inter-device communication

What does it take to have multiple i devices talk to each other via say bluetooth (or wifi), but without the need of a dedicated router

Like 4 people with iPhones all running a game app where they are playing against each other

The Multipeer Connectivity framework provides this.