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 & HelpSyntax Questions › processing Networking?
Page Index Toggle Pages: 1
processing Networking?? (Read 641 times)
processing Networking??
Mar 28th, 2007, 2:09pm
 
Hi guys,

I have been wondering ... is it possible to send udp packets from one system to another?  For example - I have a color tracking sketch that I would like to send all current X and Y values for objects tracked on to another system, which will use that data in a certain way.  What sort of networking capabilities does Processing offer?

Thanks in advance
Re: processing Networking??
Reply #1 - Mar 28th, 2007, 3:14pm
 
Processing's network library only uses TCP I think. To do UDP you'll probably have to fall back to Java's networking stuff.

See: http://java.sun.com/j2se/1.4.2/docs/api/java/net/DatagramPacket.html
and
http://java.sun.com/j2se/1.4.2/docs/api/java/net/DatagramSocket.html

You may well be able to use TCP for your needs, if so then the Processing netowkring librar reference is available here: http://processing.org/reference/libraries/net/index.html
Page Index Toggle Pages: 1