Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Multiplayer Real Time game, what is the best protocol/communication? [closed]

I want to develop an Android multiplayer real time game. But I'm still confuse what is the best way to do the communication. I found a few options:

  1. TCP
  2. UDP
  3. Ajax/Comet/Messaging services i.e. pubnub.com, beaconpush.com
  4. Push notification
  5. XMPP
  6. Android Cloud To Device Messaging
  7. The Pubsubhubub Protocol
  8. Smartfoxserver

I just wondering how the other realtime games did it? I would like to know the most common way of doing it with acceptable result.

I appreciate your thought. Thanks!

like image 514
karl Avatar asked Nov 06 '22 05:11

karl


1 Answers

You can generally get better performance for a specific goal by using UDP and handling more of the network issues yourself. TCP and fancier things built on top of it try to give you reliable, ordered communications with a sense of connected sessions, but their means of insuring reliability aren't necessarily going to be the ones that are most optimum for you. On the other hand, they are easier since they do more of the work for you.

like image 81
Chris Stratton Avatar answered Nov 11 '22 12:11

Chris Stratton