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.
IndexProcessing DevelopmentLibraries,  Tool Development › Asynchronous HTTP Requests, now with callbacks!
Page Index Toggle Pages: 1
Asynchronous HTTP Requests, now with callbacks! (Read 622 times)
Asynchronous HTTP Requests, now with callbacks!
Oct 2nd, 2006, 5:22am
 
Hello all!

I'm working on a new library that makes asynchronous http requests (web pages, xml feeds, etc.) without blocking possible.   It runs its own thread and uses a callback (just like with serial, video, etc.)  This developed out of a need that I noticed in student projects in my Introduction to Computational Media course at ITP.

It's all very rough and could use some better documentation, but I thought I might let folks take a look, test it out, and provide feedback.  You can download and read about it here:

http://www.shiffman.net/teaching/simpleml/

Source code is in the zip for the curious.  It's all based on information here:

http://www.shiffman.net/teaching/programming-from-a-to-z/threads/

Oh, and a beer to whomever can help me name this thing!

Enjoy!
Dan
Page Index Toggle Pages: 1