We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › OSC and the web
Page Index Toggle Pages: 1
OSC and the web (Read 645 times)
OSC and the web
Dec 19th, 2007, 1:04am
 
I am having trouble exporting a patch with the OSCP5 library included and running it from a browser. The program works fine as a .jar file, but not as a file within a web page such as index.html.

Thanks for any help on the subject!

Greetings, Greg
Re: OSC and the web
Reply #1 - Dec 19th, 2007, 8:54am
 
http://processing.org/reference/environment/export.html#security

not signed applets can only talk to the server they came (were loaded) from.

http://www.tree-axis.com/Ess/signed_applets.html

F
Re: OSC and the web
Reply #2 - Dec 19th, 2007, 6:37pm
 
Thanks fjen,

That worked very well so far! Thanks for your help.
Re: OSC and the web
Reply #3 - Dec 21st, 2007, 7:26am
 
there was also a little bug in the reflection code of oscP5 when running as an applet that was giving errors. this is now fixed with version 0.9.3
regarding the security issues, as fjen said, signing the applet does the job, or the communication is only between the server the applet came from, and the applet itself. nevertheless you will have a hard time communicating if the server and/or the client are in a local area network and dont have a static ip address. to solve this issue you may consider to use TCP as the transmission protocol, since TCP will establish a dedicated line. how to use oscP5 with TCP you can check the oscP5tcp examples that comes with the distribution (oscP5tcpServer would run on your server, oscP5tcpClient would be used in the applet using the IP of your server)

Page Index Toggle Pages: 1