• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet/networking question

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic