Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet/networking question

 
Dustin Kester
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I have been looking at this site for a long time, but this is my first time posting a question. This is more of a general design question, and i guess im just looking for some ideas. Anyway here goes:

I am writing an applet/server for my boss that is much like the yahoo! games applets. I have written the main applet that connects to the server, has a chat window at the bottom, and a dynamically updating list of tables you can join and start playing. My problem is this - when a player clicks on a button to join a table, i need to display an applet that has just chat capability with the people in the room (just like yahoo or any other game app), and play the game. Do i need another server instance for each table? Or is there a way to do it with the main server i already have, and some crafty threading? I really am not sure what to do and any discussion would be appreciated.
 
Jay Richards
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what i do is implement some marker on the messages being passed.

for example:

chat:hi - means string entered in the chat window
game:move 1,2 means a server command to update something

this way you only maintain one connection to the server.

anyway, your post is kindy old and maybe you have figured out a better way.

just my 2cents...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic