| Linderdaum Engine: clDownloadThread Class Reference | ![]() |
High-level interface for network operations - http file downloads. More...
#include <HTTP.h>
Public Member Functions | |
| clDownloadThread () | |
| virtual | ~clDownloadThread () |
| size_t | GetNumActiveDownloads () const |
| iAsyncResult * | AddDownload (const std::string &HostName, int Port, const std::string &Path, const std::string &OutFileName, iObject *CompletionHandler) |
| Add download to process list and return its internal handle. Optional completion handler receives events about download. | |
| void | PollDownloads () |
| Might be blocking, if the connection was not yet established. | |
| void | DumpDownloadState () |
| Debug print download state. | |
| void | StopDownloads () |
| void | PauseDownloads () |
| double | GetCombinedDownloadSpeed () const |
| virtual void | Init () |
| virtual void | Run () |
| Worker routine. | |
| virtual void | Finish () |
Private Attributes | |
| std::list< HttpDownloadConn * > | FDownloads |
| clMutex | FAddMutex |
High-level interface for network operations - http file downloads.
Handles http download streams
| clDownloadThread::clDownloadThread | ( | ) | [inline] |
| virtual clDownloadThread::~clDownloadThread | ( | ) | [inline, virtual] |
| iAsyncResult * clDownloadThread::AddDownload | ( | const std::string & | HostName, |
| int | Port, | ||
| const std::string & | Path, | ||
| const std::string & | OutFileName, | ||
| iObject * | CompletionHandler | ||
| ) |
Add download to process list and return its internal handle. Optional completion handler receives events about download.
| void clDownloadThread::DumpDownloadState | ( | ) |
Debug print download state.
| virtual void clDownloadThread::Finish | ( | ) | [inline, virtual] |
| double clDownloadThread::GetCombinedDownloadSpeed | ( | ) | const |
| size_t clDownloadThread::GetNumActiveDownloads | ( | ) | const [inline] |
| virtual void clDownloadThread::Init | ( | ) | [inline, virtual] |
| void clDownloadThread::PauseDownloads | ( | ) |
| void clDownloadThread::PollDownloads | ( | ) |
Might be blocking, if the connection was not yet established.
| void clDownloadThread::Run | ( | ) | [virtual] |
| void clDownloadThread::StopDownloads | ( | ) |
clMutex clDownloadThread::FAddMutex [private] |
std::list<HttpDownloadConn*> clDownloadThread::FDownloads [private] |