One way is to use GameKit (http://developer.apple.com/library/ios/#documentation/Networ...) but I believe you can just go with a BlueTooth connection.
Are you thinking about something else? Is it some specificity of GameKit that's limiting you?