The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

reply

Posted by Pavan Kumar Keely on June 27, 2001 at 3:21 PM

> I'm embarking on a project to create a multiplayer card game on the web. The major hurdle I'm facing is: how do I allow applets to interact with each other (or interact with some server-based program)? That is, when a player plays a card on one applet, how can it tell the other players connected via other instances of the applet on other machines? Thanks for any help you can give me.


I think you can use Socket programming for this.\
A server socket will be waiting at the srever side.
All the clients will connect to the server with the applet.
When a player changes the status(any move or anything), a message will be sent to the server through the socket and that message will then be distributed to all other players(applets) with the sockets.
This may sove your problem,
if you have any doubts please feel free to conatct at
keelypavan@hotmail.com

Pavan Kumar Keely



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us