Thanks.

Sorry if there are multiple messages coming through for me,  my Provider had
blocked this e-mail address (twsocket....) thinking it was spam.


   Perry
 

-----Original Message-----
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Angus Robertson - Magenta Systems Ltd
Sent: Tuesday, April 24, 2012 2:00 AM
To: twsocket@elists.org
Subject: Re: [twsocket] Download manager (Source) (Missing files?)

> Only trying to figure out, where the THttpCli component is located, 
> cause I'm not finding it.
> Not even finding that download manager queue thing within the source.

The browser demo is slightly convoluted due to handling URL protocols such
as res and file, as well as http, and due to caching of images. 

Essentially, there is a dynamic array FImageHTTPs of TImageHTTP components,
four at the moment, this component is defined in urlconics.pas and includes
HTTP : TSslHttpCli which does the hard work. 

When the browser component needs to display an image in GetImageRequest, the
URL is added to a queue Pending and a windows message WM_Next_Image sent,
which eventually causes WMNextImage to be called.  This checks if one of the
FImageHTTPs instances is free and if so starts a download.
When the download completes, ImageRequestDone is called which processes the
download and calls HttpSessionFree.  This clears the last session and checks
Pending for any more URLs and sends another windows message to trigger the
next download.  So Pending is the real queue. 

Angus





--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to