It sounds fine, however the biggest problem I would see is the data
limit on C2DM messages.
Your data needs to stay below 1024 bytes.
It seems though that if you're just sending messages that tells the
clients to pull data.
So, it seems like it should work ok.  But of course, with a socket you
will have the best speed and flexibility.

On Fri, Jan 28, 2011 at 5:49 AM, john doe <[email protected]> wrote:
> Hi there.
>
> I'm building a prototype game that is just a personal project. It will
> not be commercial.
>
> I will have multiple android 2.2+ clients that will partake in a game
> with shared state.
> Very often (every couple of seconds or less), the game state will have
> to be pushed to all of the clients. Instead of each client maintaining
> a persisted TCP/IP connection,I was wondering if C2DM would help me?
> When client 'A' does something that will update the game state that
> needs to be shared with all of the clients, C2DM can send a message to
> the clients telling them to contact the game server for game state
> updates.
>
> Within the context of a client 'A', performing an action (and sending
> a notification to the server) that updates the global game state that
> the server then needs to share with the other clients, I have 3
> questions:
> Is C2DM feasible within a gaming environment?
> Is there another architectural solution that will work in a gaming
> environment, that will allow the server to send game state updates
> directly to clients without persistent TCP/IP connections or C2DM?
> Is a socket connection the only way for a server to maintain a direct
> communication channel with the client?
>
> Thanks for your advice
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx

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

Reply via email to