Linderdaum Engine: clDownloadThread Class Reference
Updated: Sun Feb 5 2012 22:59:50
clDownloadThread Class Reference

High-level interface for network operations - http file downloads. More...

#include <HTTP.h>

List of all members.

Public Member Functions

 clDownloadThread ()
virtual ~clDownloadThread ()
size_t GetNumActiveDownloads () const
iAsyncResultAddDownload (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

Detailed Description

High-level interface for network operations - http file downloads.

Handles http download streams


Constructor & Destructor Documentation

clDownloadThread::clDownloadThread ( ) [inline]
virtual clDownloadThread::~clDownloadThread ( ) [inline, virtual]

Member Function Documentation

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]

Worker routine.

Do not waste time while no downloads pending

Implements iThread.

void clDownloadThread::StopDownloads ( )

Member Data Documentation


The documentation for this class was generated from the following files: