Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to connect two iPhones over a WAN for a real time gaming experience?

Tags:

iphone

Is it possible to connect two iPhones over the web (wide area network) for a real time gaming experience? Would the connection be fast enough for a game (for example) like pong? What steps should I take? What type of objects int the iPhone SDK should I employ to make this happen?

If you are voting to close please at least leave a comment.

like image 439
Jamey McElveen Avatar asked Apr 13 '09 17:04

Jamey McElveen


2 Answers

Yes, the iPhone can communicate with the web. You're going to run into the same issues as desktop clients though, including intrinsic network latency and NAT traversal problems. Additionally, you're going to deal with standard embedded systems problems, i.e. you can't tax the CPU and expect network performance to stay high. The solutions are the same as those on the desktop, e.g. having a central "game server" that mitigates the NAT traversal issues and moves "hit" determination away from the clients.

like image 156
John Douthat Avatar answered Nov 13 '22 00:11

John Douthat


Also take a look at GameKit in the new SDK

like image 44
Rog Avatar answered Nov 12 '22 23:11

Rog