Archived

This topic is now archived and is closed to further replies.

koatto

[java] Applet instances

Recommended Posts

There''s a way to make instances of the same applet communicate without a third party server? For example: if 2 persons open the same web page, can they communicate using the applet in the page?

Share this post


Link to post
Share on other sites
Unsigned applets are restricted via the sandbox to communicate only with the server they were loaded from. This means your "third party" server *must* be available.

If the applets are signed, these restrictions should be lifted, allowing the applets to intercommunicate, read / write files, etc..

ManaSink

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I think the problem isn''t writing files, but that applets are sandboxed to only connect with servers they came from. If you create a signed one or have them change their policies, it probably would work over sockets

Share this post


Link to post
Share on other sites
Connecting an applet to an arbitrary socket isn''t that advantageous. Image in two people hitting a web page that contains an applet and they want to connect to each other. What are there IP addresses? You don''t know, the only common thread is the server from which the applets were downloaded. So run a program on the server that coordinates communications between the applets.

Share this post


Link to post
Share on other sites