[android-developers] Re: Multiplayer Game – Handle Communication

2010-09-07 Thread Bret Foreman
How about sending and receiving tweets? How much info does the game
need to exchange?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Multiplayer Game – Handle Communication

2010-09-07 Thread Robert Green
Go lightweight and cross-platform.  You'll be glad you did.

Almost every platform can easily encode/decode JSON.  Consider using
it if it's not a real-time protocol (JSON is awesome for turn-based
stuff).  If it is a real-time protocol, roll your own binary format.
Keep it super simple, with packets that are linear access, like header
number-of-bytes-in-packet, next int start data, object ID, bytes for
object, then just decode elements in-order, recurse if need-be, etc.
next object ID, bytes for object, go in...

On Sep 7, 8:24 pm, Bret Foreman bret.fore...@gmail.com wrote:
 How about sending and receiving tweets? How much info does the game
 need to exchange?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en