Asynchronous HTTP
- Posted by Craig Welch <euphoria at welchaviation.org> May 06, 2005
- 407 views
I'm commencing an application that will go get a multitude of web pages. There's been a number of EU applications for HTTP requests. I like the look of AsyncHTTP.ew. because I can get a number of requests under way at the same time. But that leads to a limitation of my understanding of how to process them. >From the documentation: "Because it is asynchronous you do not simply call a function which returns a value, you call a procedure to say that you wish to retrieve a document and when it has been retrieved you are notified". That's straightforward, but if I send 10 requests, and they all come back at about the same time, I presume my handler is going to be interrupted up to 9 times. Do I somehow have to write re-entrant code for the handler? Are there any guidelines on how to do this? Or have I missed a point somewhere? Thanks, -- Craig