Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » knowing download speed and ProgressIndicator
Re: knowing download speed and ProgressIndicator [message #16950 is a reply to message #16918] Tue, 22 July 2008 17:44 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Simplest way (do this in the main thread):
Progress progress("Downloading file...");
HttpClient client;
String url = attachments.GetData();
client.URL ( url );
String content;
content = client.ExecuteRedirect ( HttpClient::DEFAULT_MAX_REDIRECT, HttpClient::DEFAULT_RETRIES, progress);
SaveFile ( "file" + FormatInt ( file_num ), content );
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: making thread
Next Topic: sending post message
Goto Forum:
  


Current Time: Mon Apr 29 03:36:13 CEST 2024

Total time taken to generate the page: 0.76932 seconds