maddanio
06-15-2008, 11:35 PM
Hi,
A friend and I are coding up an online game. We were thinking of integrating it with jabber. So I would like to know if it is possible and how. So I will quickly scheme out what we need:
there will be players, they can play 1on1 or more at a time
there will be statistics held central (mainly scores, also list of available players, news, tournament info)
i.e. we need a way for players to connect to each other or in groups as in chatrooms and they should also be able to talk to a server (itself a jabber client). they should be able to chat and play simultaneously. so we would send text messages as well as game messages. i.e. effectively there would be two clients, the chat and the game.
the simplest way to do this would be to just do a chat client and filter out special messages, but I thought with all the extensible xmpp stuff it would be possible to properly register two clients with their own protocols? the server, if we do it with jabber, would just be one client, but with a special protocol.
is this possible? does it require support by the jabber servers (which would be bad...).
On the side: to make it more efficient I think peer-to-peer connections would help. Are they hard to do? Do they need special ports (nono for firewalls, corporate networks, hotspots I suppose)?
Thanks for any help
Daniel
A friend and I are coding up an online game. We were thinking of integrating it with jabber. So I would like to know if it is possible and how. So I will quickly scheme out what we need:
there will be players, they can play 1on1 or more at a time
there will be statistics held central (mainly scores, also list of available players, news, tournament info)
i.e. we need a way for players to connect to each other or in groups as in chatrooms and they should also be able to talk to a server (itself a jabber client). they should be able to chat and play simultaneously. so we would send text messages as well as game messages. i.e. effectively there would be two clients, the chat and the game.
the simplest way to do this would be to just do a chat client and filter out special messages, but I thought with all the extensible xmpp stuff it would be possible to properly register two clients with their own protocols? the server, if we do it with jabber, would just be one client, but with a special protocol.
is this possible? does it require support by the jabber servers (which would be bad...).
On the side: to make it more efficient I think peer-to-peer connections would help. Are they hard to do? Do they need special ports (nono for firewalls, corporate networks, hotspots I suppose)?
Thanks for any help
Daniel