开发者

Networking Multiplayer games in Cocoa?

I have made开发者_StackOverflow this game for Mac OS, but I realised that i need to make it better with multiplayer.

Im an experienced Cocoa developer (so please, no RTFM's) but for some reason I never even touched on networking. I was wondering how I could send game date from com1 to com2, and vice versa, over different wifi networks.

Cheers, Conor

Edit: When I say different wifi networks, I mean no bonjour. I want to be able to play the game in the US with a guy in china!


I can just copy my answer from this question :)
MAC IOS IPC: how to write P2P applications in MAC and IOS?

Apple Bonjour is the way to go:
- http://en.wikipedia.org/wiki/Bonjour_(software)
- http://www.mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/
Especially the sample project from the last link might be useful.

Quin (multiplayer tetris game) also uses Bonjour for example:
- http://simonhaertel.de/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜