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 & HelpPrograms › [HTTP CLIENT] endless loop
Page Index Toggle Pages: 1
[HTTP CLIENT] endless loop? (Read 921 times)
[HTTP CLIENT] endless loop?
May 10th, 2005, 3:28pm
 
I dont know if this is expected or has already been discussed (I couldnt find it) but the provided HTTP Client by Tom Igoe seems to loop endlessly after all the data has been downloaded...
I changed the if to a while and things seem to be better.

here are my updates:

void draw()
{
 background(0);
 while (client.available() > 0) {
   int inByte = client.read();
   print((char)inByte);
 }
}

Hope that helps... and if I'm totaly wrong then please let me know.

ben~
Page Index Toggle Pages: 1