Advertisement

[java] Applet instances

Started by July 24, 2000 06:10 PM
3 comments, last by koatto 24 years, 4 months ago
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?
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
Advertisement
What i have to do to sign my applet? =))

Are files the only way to make applet communicate? Aren''t direct ways?

thnx
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
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.

This topic is closed to new replies.

Advertisement