FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   socket connection
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: socket connection  (Read 376 times)
Bertrand Saint-Guillain

170736171170736171super_satori WWW Email
socket connection
« on: Jan 13th, 2003, 6:49am »

Is there any chance to see some level of socket connections in proce55ing ?
It would be even better if it was possible to have both UDP and TCP connections.
I don't know java enough BTW, so is it even possible to establish a socket connection from an applet ?
And is it possible to listen connections from an applet ? (though creating a server with proce55ing may not be such a good idea)
Socket connections from proce55ing apps would be very valuable.
 
fry


WWW
Re: socket connection
« Reply #1 on: Jan 13th, 2003, 3:03pm »

you can just use regular java socket io. some examples can be found here: http://www.javaalmanac.com/cgi-bin/search/find.pl?words=socket
 
the first two look most useful.  
 
once we work out the details of other high-level features that should be in the serial api, maybe those will be things to also use as a wrapper around sockets, and we'll make that available in the p5 api. however for now, we'd like to release an example or two that uses sockets in a simple way, but have no immediate plans to incorporate sockets as part of the api.
 
regarding the other part of your question, applets can only be clients and speak to the ip address of the server from which they came (unless you do fancy security things involving 'signed code'). applications, or anything that runs inside the p5 environment itself can speak to whatever it wants, both client and server.
 
Bertrand Saint-Guillain

170736171170736171super_satori WWW Email
Re: socket connection
« Reply #2 on: Jan 15th, 2003, 7:20pm »

fine, that sounds pretty interesting. I'll give it a try ASAP.
 
Pages: 1 

« Previous topic | Next topic »