gettingstarted
[Top] [All Lists]

Re: Running Events in HTTPSocket

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Running Events in HTTPSocket
From: Will Leshner <leshner at ljug dot com>
Date: Tue, 31 Aug 2004 17:19:51 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <20040831163938 dot D030E41E040 at lists dot realsoftware dot com><BAY12-DAV18oVexDAey000095d2 at hotmail dot com> <0FA943A6-FB7E-11D8-9661-000A95983FBE at ljug dot com> <BAY12-DAV7alkXh3wFD0000c95d at hotmail dot com>

On Aug 31, 2004, at 5:13 PM, Frank Lfr wrote:

I'm just trying to test download times for URLs in succession, but each must run to completion before the other can start. I haven't been able to do that in RealBasic using the HTTPSocket class. If I run asynchronously, it just kills the previous download and starts over with the next one (which is
also killed by the next one .. only the last one runs).


Well, you have to wait for one download to end before starting another one. Other than that, it should work fine to use asynchronous HTTPSockets. One way to achieve this is to make an array of URLs to fetch. Then, when you get the event that one page has been completely fetched, you go to the next URL in the array.

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>