#include <fsInternetDownloader.h>
Definition at line 267 of file fsInternetDownloader.h.
| fsInternetDownloader::fsInternetDownloader | ( | ) |
Definition at line 33 of file fsInternetDownloader.cpp.
References DNP(), FALSE, m_bAddingSection, m_bDetLog, m_bDontRestartIfNoRanges, m_bErrDownloading, m_bMirrMeasureSpeed, m_bNeedStop, m_bSearchForMirrors, m_bWasAccessedAtLeastOnce, m_cBaseSectCreatingNow, m_cMirrsFound, m_cRunningThreads, m_csAddSection, m_csDone, m_csOpenUrl, m_csSections, m_csWriteToFile, m_cThreads, m_dnp, m_dwBaseServerPingTime, m_dwDataLenInCache, m_dwForceCacheSizePerSection, m_dwState, m_enRST, m_fileDate, m_hOutFile, m_pfnEvents, m_pMirrURLMgr, m_pOpeningFile, m_pZipPreviewStream, m_strContentType, m_uLDFileSize, m_uMaxAttempts, m_uMirrFileMinSize, m_uRetryTime, m_uSectionMinSize, m_uSSFileSize, m_uTimeout, m_uTrafficLimit, NULL, RST_UNKNOWN, StopOnAccDenied(), StopOnFileNotFound(), and TRUE.
| fsInternetDownloader::~fsInternetDownloader | ( | ) | [virtual] |
Definition at line 95 of file fsInternetDownloader.cpp.
References fsDNP_GetByUrl_Free(), m_csAddSection, m_csDone, m_csOpenUrl, m_csSections, m_csWriteToFile, m_cThreads, m_vMirrs, and StopDownloading().
| BOOL fsInternetDownloader::IsCompletelyStopped | ( | ) |
| void fsInternetDownloader::ResetTotalTrafficInfo | ( | ) | [static] |
Definition at line 3137 of file fsInternetDownloader.cpp.
References vmsCriticalSection::Lock(), m_csDataRcvd, m_nTotalTraffic, and vmsCriticalSection::Unlock().
Referenced by CMainFrame::SaveState().
| UINT64 fsInternetDownloader::get_TotalSpeed | ( | ) | [static] |
Definition at line 3132 of file fsInternetDownloader.cpp.
References fsSpeedMeter::GetSpeed(), and m_TotalSpeed.
| UINT64 fsInternetDownloader::get_TotalTraffic | ( | ) | [static] |
Definition at line 3127 of file fsInternetDownloader.cpp.
References m_nTotalTraffic.
Referenced by CMainFrame::OnUpdateTrafficThisMonth(), and CMainFrame::SaveState().
| BOOL fsInternetDownloader::is_PauseMode | ( | ) | [static] |
Definition at line 3114 of file fsInternetDownloader.cpp.
References m_bPauseMode.
Referenced by _threadDownload(), vmsBtSupport::ApplyRestrainAllDownloadsMode(), CMainFrame::OnPausealldlds(), CMainFrame::OnUpdatePausealldlds(), and fsScheduleMgr::StartTask().
| void fsInternetDownloader::set_PauseMode | ( | BOOL | bPause | ) | [static] |
Definition at line 3109 of file fsInternetDownloader.cpp.
References m_bPauseMode.
Referenced by CMainFrame::OnPausealldlds(), and fsScheduleMgr::StartTask().
| BOOL fsInternetDownloader::is_WasAccessedAtLeastOnce | ( | ) |
| FILETIME fsInternetDownloader::get_FileDate | ( | ) |
Definition at line 3099 of file fsInternetDownloader.cpp.
References m_fileDate.
Referenced by fsDownloadMgr::SetFileTime().
| fsString fsInternetDownloader::get_URL | ( | BOOL | bIncludeAuthInfo = FALSE |
) |
Definition at line 3083 of file fsInternetDownloader.cpp.
References fsURL::Create(), DNP(), fsNPToScheme(), and IR_SUCCESS.
Referenced by vmsDownloadMgrEx::get_URL().
| BOOL fsInternetDownloader::RemoveMirror | ( | int | iIndex | ) |
Definition at line 3052 of file fsInternetDownloader.cpp.
References FALSE, fsDNP_GetByUrl_Free(), m_bAddingSection, m_cBaseSectCreatingNow, m_csOpenUrl, m_vMirrs, m_vSections, NULL, SS_DOWNLOADING, SS_NEEDSTOP, state(), and TRUE.
| void fsInternetDownloader::Set_Timeout | ( | UINT | u | ) |
Definition at line 3047 of file fsInternetDownloader.cpp.
References m_uTimeout.
Referenced by fsDownloadMgr::ApplyProperties().
| UINT64 fsInternetDownloader::GetLDFileSize | ( | ) |
Definition at line 3010 of file fsInternetDownloader.cpp.
References m_uLDFileSize.
Referenced by fsDownloadMgr::_threadReserveDiskSpace(), ApplyArchiveRebuilding(), GetDownloadedBytesCount(), vmsDownloadMgrEx::GetLDFileSize(), GetPercentDone(), fsDownloadsMgr::OnDldDone_CheckDownloadIsHtmlPageWithVideo(), and fsDownloadMgr::ReserveDiskSpace().
| DWORD fsInternetDownloader::GetState | ( | ) |
| void fsInternetDownloader::UseZipPreview | ( | BOOL | b | ) |
Definition at line 2922 of file fsInternetDownloader.cpp.
References IDS_USEZIPPREVIEW, and m_dwState.
Referenced by fsDownloadMgr::ApplyProperties().
| LPCSTR fsInternetDownloader::Get_FileName | ( | ) |
Definition at line 2792 of file fsInternetDownloader.cpp.
References m_strFileName.
Referenced by CDownloads_Tasks::GetFileName().
| UINT64 fsInternetDownloader::GetDownloadedBytesCount | ( | ) |
Definition at line 2783 of file fsInternetDownloader.cpp.
References GetBytesLeft(), GetLDFileSize(), m_dwDataLenInCache, and m_vSections.
Referenced by fsDownloadMgr::_threadReserveDiskSpace(), and vmsDownloadMgrEx::GetDownloadedBytesCount().
| int fsInternetDownloader::GetFoundMirrorCount | ( | ) |
Definition at line 2778 of file fsInternetDownloader.cpp.
References m_cMirrsFound.
Referenced by fsDownloadMgr::_DownloaderEvents().
| LPCSTR fsInternetDownloader::GetContentType | ( | ) |
Definition at line 2773 of file fsInternetDownloader.cpp.
References m_strContentType.
Referenced by fsDownloadsMgr::OnDldDone_CheckDownloadIsHtmlPageWithVideo().
| void fsInternetDownloader::Set_MirrPingTime | ( | int | iMirr, | |
| DWORD | dw | |||
| ) |
Definition at line 2768 of file fsInternetDownloader.cpp.
References m_vMirrs.
Referenced by fsDownloadMgr::LoadState().
| BOOL fsInternetDownloader::IsMirrSearchPerformed | ( | ) |
Definition at line 2763 of file fsInternetDownloader.cpp.
References IDS_MIRRSEARCHPERFORMED, and m_dwState.
Referenced by CDownloadProperties_MirrorsPage::OnInitDialog().
| BOOL fsInternetDownloader::MeasureMirrorsSpeed | ( | ) |
Definition at line 2623 of file fsInternetDownloader.cpp.
References DNP(), FALSE, LOG, m_bNeedStop, m_dwBaseServerPingTime, m_vMirrs, nl, fsSitePingMgr::Ping(), fsSitePingMgr::TestState(), and TRUE.
Referenced by FindMirrors(), and fsDownloadMgr::MeasureMirrorsSpeed().
| int fsInternetDownloader::GetMirrorRefs | ( | int | iMirrorIndex | ) |
Definition at line 2654 of file fsInternetDownloader.cpp.
References m_vSections.
Referenced by CDownloadProperties_MirrorsPage::UpdateMirrUsing().
| void fsInternetDownloader::Set_BaseServerPingTime | ( | DWORD | dw | ) |
Definition at line 2758 of file fsInternetDownloader.cpp.
References m_dwBaseServerPingTime.
Referenced by fsDownloadMgr::LoadState().
| DWORD fsInternetDownloader::Get_BaseServerPingTime | ( | ) |
Definition at line 2753 of file fsInternetDownloader.cpp.
References m_dwBaseServerPingTime.
Referenced by fsDownloadMgr::SaveState(), and CDownloadProperties_MirrorsPage::UpdateMirrSpeed().
| void fsInternetDownloader::AddMirror | ( | fsDownload_NetworkProperties * | dnp, | |
| BOOL | bIsGood = TRUE, |
|||
| BOOL | bDontMeasureSpeed = FALSE | |||
| ) |
Definition at line 2732 of file fsInternetDownloader.cpp.
References fsInternetDownloader::fsMirrorURLInfo::bIsGood, fsInternetDownloader::fsMirrorURLInfo::dnp, fsInternetDownloader::fsMirrorURLInfo::dwPingTime, FALSE, LOG, m_bMirrMeasureSpeed, m_vMirrs, nl, fsSitePingMgr::Ping(), fsDownload_NetworkProperties::pszServerName, and fsSitePingMgr::TestState().
Referenced by AddMirrorURL(), and fsDownloadMgr::LoadState().
| void fsInternetDownloader::RemoveAllMirrors | ( | ) |
Definition at line 2722 of file fsInternetDownloader.cpp.
References fsDNP_GetByUrl_Free(), IDS_MIRRSEARCHPERFORMED, m_dwState, m_strFileName, and m_vMirrs.
Referenced by DeleteAllSections(), and fsDownloadMgr::Reset().
| BOOL fsInternetDownloader::GetMirrorIsGood | ( | int | iMirr | ) |
Definition at line 2717 of file fsInternetDownloader.cpp.
References m_vMirrs.
Referenced by fsDownloadMgr::SaveState().
| DWORD fsInternetDownloader::GetMirrorPingTime | ( | int | iMirr | ) |
Definition at line 2712 of file fsInternetDownloader.cpp.
References m_vMirrs.
Referenced by fsDownloadMgr::SaveState(), and CDownloadProperties_MirrorsPage::UpdateMirrSpeed().
| void fsInternetDownloader::Set_MirrDontSearchIfSizeUnk | ( | BOOL | b | ) |
| void fsInternetDownloader::Set_MirrMaxCount | ( | UINT | u | ) |
| void fsInternetDownloader::Set_MirrFileMinSize | ( | UINT | u | ) |
| void fsInternetDownloader::Set_MirrCalcSpeed | ( | BOOL | b | ) |
| void fsInternetDownloader::Set_SearchForMirrors | ( | BOOL | bSearch | ) |
Definition at line 2555 of file fsInternetDownloader.cpp.
References m_bSearchForMirrors.
Referenced by fsDownloadsMgr::_DownloadMgrEvents().
| BOOL fsInternetDownloader::IsSectionCreatingNow | ( | ) |
Definition at line 2664 of file fsInternetDownloader.cpp.
References FALSE, GetCreatingNowSectionCount(), m_vMirrs, and TRUE.
Referenced by fsDownloadMgr::AddSection(), and fsDownloadMgr::CreateOneMoreSection().
| fsInternetResult fsInternetDownloader::FindMirrors | ( | ) |
Definition at line 2474 of file fsInternetDownloader.cpp.
References _App, _MirrMgrEvents(), AddMirrorURL(), ApplyProxySettings(), vmsInternetSession::Create(), DE_MEASURINGMIRRSPEED, DE_MIRRDONE, DE_MIRRFAILED, DE_MIRRFOUND, DE_NOMIRRFOUND, DE_STARTINGSEARCHINGFORMIRRORS, DNP(), Event(), FALSE, fsFileNameFromUrlPath(), fsMirrorURLsMgr::Get_MirrorURL(), fsMirrorURLsMgr::Get_MirrorURLCount(), GetSSFileSize(), IDS_MIRRSEARCHPERFORMED, fsMirrorURLsMgr::Initialize(), IR_SUCCESS, fsString::Length(), LOG, m_bMirrMeasureSpeed, m_bNeedStop, m_cMaxMirrs, m_cMirrsFound, m_dwState, m_strFileName, MeasureMirrorsSpeed(), fsAppSettings::Mirr_Server(), nl, NP_FTP, NULL, fsMirrorURLsMgr::SearchForMirrors(), fsMirrorURLsMgr::Set_EventFunc(), fsMirrorURLsMgr_FileMirrorsDotCom::Set_SearchURL(), TRUE, and vmsMakeWinInetProxy().
Referenced by Auto_SearchMirrors(), and fsDownloadMgr::FindMirrors().
| fsInternetResult fsInternetDownloader::AddMirrorURL | ( | LPCSTR | pszUrl, | |
| LPCSTR | pszUser = NULL, |
|||
| LPCSTR | pszPassword = NULL, |
|||
| BOOL | bDontMeasureSpeed = FALSE | |||
| ) |
Definition at line 2441 of file fsInternetDownloader.cpp.
References AddMirror(), DNP(), fsDNP_CloneSettings(), fsDNP_GetByUrl(), IR_SUCCESS, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszUserName, SAFE_DELETE_ARRAY, and TRUE.
Referenced by FindMirrors().
| int fsInternetDownloader::GetMirrorURLCount | ( | ) |
Definition at line 2436 of file fsInternetDownloader.cpp.
References m_vMirrs.
Referenced by CDownloadProperties_MirrorsPage::FillMirrsList(), CDownloadProperties_MirrorsPage::OnInitDialog(), fsDownloadsMgr::ProcessDownloads(), fsDownloadMgr::SaveState(), CDownloadProperties_MirrorsPage::UpdateMirrSpeed(), and CDownloadProperties_MirrorsPage::UpdateMirrUsing().
| fsDownload_NetworkProperties * fsInternetDownloader::MirrorDNP | ( | int | iMirror | ) |
Definition at line 2431 of file fsInternetDownloader.cpp.
References m_vMirrs.
Referenced by CDownloadProperties_MirrorsPage::FillMirrsList(), fsDownloadsMgr::ProcessDownloads(), and fsDownloadMgr::SaveState().
| fsInternetResult fsInternetDownloader::StartDownloading | ( | UINT | uStartFrom = 0 |
) |
Definition at line 1633 of file fsInternetDownloader.cpp.
References _App, _threadDownload(), ASSERT, Auto_SearchMirrors(), BOOL, CreateMainSection(), DE_NEEDFILE, DE_NEEDFILE_FINALINITIALIZATION, DE_QUERYNEWSECTION, DE_RESTARTINGBECAUSENORANGES, DE_SCR, DE_SECTIONSTARTED, Event(), FALSE, fsSection::file, fsAppSettings::FileWriteCacheSize(), GetDoneSectionCount(), fsInternetURLFile::GetFileSize(), GetNumberOfSections(), IR_BADFILESIZE, IR_DOUBTFUL_RANGESRESPONSE, IR_FILENOTFOUND, IR_INVALIDPASSWORD, IR_INVALIDUSERNAME, IR_LOGINFAILURE, IR_RANGESNOTAVAIL, IR_S_FALSE, IR_SUCCESS, IsDone(), IsRunning(), fsSection::lastErr, m_bDontRestartIfNoRanges, m_bNeedStop, m_bNoNewSections, m_bStopOnAccDenied, m_bStopOnFileNotFound, m_cBaseSectCreatingNow, m_cRunningThreads, m_csSections, m_cThreads, m_dwDataLenInCache, m_dwForceCacheSizePerSection, m_speed, m_uSSFileSize, m_vMirrs, m_vSections, fsSection::nMirrorURL, NULL, OpenUrl(), fsSpeedMeter::Reset(), SAFE_DELETE, SCR_ADJUSTFORNEWSIZE, SCR_RESTART, SCR_STOP, SS_DONE, SS_DOWNLOADING, fsSection::state, StopDownloading(), TRUE, fsSection::uCurrent, fsSection::uDCurrent, fsSection::uDEnd, and fsSection::uEnd.
Referenced by fsDownloadMgr::StartDownload().
| void fsInternetDownloader::StopDownloading | ( | ) |
Definition at line 1402 of file fsInternetDownloader.cpp.
References fsMirrorURLsMgr::Abort(), ASSERT, fsInternetURLFile::CloseHandle(), FALSE, fsSection::file, LOG, m_bNeedStop, m_cThreads, m_pMirrURLMgr, m_pOpeningFile, m_pZipPreviewStream, m_vSections, nl, fsArchiveInternetStream::Stop(), and TRUE.
Referenced by ResetSections(), StartDownloading(), fsDownloadMgr::StopDownload(), fsDownloadMgr::StopDownloading(), fsDownloadMgr::StopQuering(), and ~fsInternetDownloader().
| void fsInternetDownloader::UseDetailedLog | ( | BOOL | b = TRUE |
) |
Definition at line 2426 of file fsInternetDownloader.cpp.
References m_bDetLog.
Referenced by vmsDownloadMgrEx::UseDetailedLog().
| fsInternetResult fsInternetDownloader::LaunchOneMoreSection | ( | ) |
Definition at line 2393 of file fsInternetDownloader.cpp.
References _threadDownload(), DE_SECTIONSTARTED, Event(), IR_S_FALSE, IR_SUCCESS, m_cRunningThreads, m_cThreads, m_vSections, NULL, SS_STOPPED, and state().
Referenced by fsDownloadMgr::_threadDownloadMgr().
| int fsInternetDownloader::GetStoppedSectionCount | ( | ) |
Definition at line 2382 of file fsInternetDownloader.cpp.
References m_vSections, SS_STOPPED, and state().
Referenced by fsDownloadMgr::_threadDownloadMgr().
| fsInternetResult fsInternetDownloader::QuerySize | ( | ) |
Definition at line 2236 of file fsInternetDownloader.cpp.
References _InetFileDialogFunc(), CreateSection(), FALSE, fsSection::file, fsInternetURLFile::GetFileSize(), IR_S_FALSE, IR_SUCCESS, IsRunning(), m_csAddSection, m_csOpenUrl, m_pOpeningFile, m_uLDFileSize, m_uSSFileSize, m_vSections, NULL, fsSpeaking::SetDialogFunc(), fsSection::uCurrent, fsSection::uDCurrent, fsSection::uDEnd, fsSection::uDStart, fsSection::uEnd, and fsSection::uStart.
Referenced by QuerySize(), and fsDownloadMgr::QuerySize().
| LPCSTR fsInternetDownloader::GetSuggestedFileName | ( | ) |
Definition at line 2231 of file fsInternetDownloader.cpp.
References fsString::Length(), m_strSuggFileName, and NULL.
Referenced by fsDownloadMgr::BuildFileName().
| void fsInternetDownloader::StopSection | ( | ) |
Definition at line 2191 of file fsInternetDownloader.cpp.
References m_vSections, NULL, SS_DOWNLOADING, SS_ERROR, SS_NEEDSTOP, SS_RECONNECTING, SS_WRITEERROR, fsSection::state, fsSection::uCurrent, and fsSection::uEnd.
Referenced by fsDownloadMgr::StopSection().
| void fsInternetDownloader::LockWriteFile | ( | BOOL | bLock | ) |
Definition at line 3162 of file fsInternetDownloader.cpp.
References m_csWriteToFile.
Referenced by fsDownloadMgr::_threadReserveDiskSpace().
| void fsInternetDownloader::DeleteAllSections | ( | ) |
Definition at line 2178 of file fsInternetDownloader.cpp.
References IDS_ZIPPREVIEWPERFORMED, IsRunning(), m_dwState, m_uLDFileSize, m_uSSFileSize, m_vSections, and RemoveAllMirrors().
Referenced by fsDownloadMgr::SetToRestartState().
| int fsInternetDownloader::GetCreatingNowSectionCount | ( | UINT | nMirror | ) |
Definition at line 2167 of file fsInternetDownloader.cpp.
References m_cBaseSectCreatingNow, and m_vMirrs.
Referenced by IsSectionCreatingNow(), fsDownloadsMgr::ProcessDownloads(), and fsDownloadsMgr::RebuildServerList().
| float fsInternetDownloader::GetPercentDone | ( | ) |
Definition at line 2155 of file fsInternetDownloader.cpp.
References GetBytesLeft(), and GetLDFileSize().
Referenced by vmsDownloadMgrEx::GetPercentDone().
| fsResumeSupportType fsInternetDownloader::IsResumeSupported | ( | ) |
Definition at line 2150 of file fsInternetDownloader.cpp.
References m_enRST.
Referenced by fsDownloadMgr::_threadDownloadMgr(), CreateAdditionalSection(), and vmsDownloadMgrEx::IsResumeSupported().
| UINT fsInternetDownloader::GetTrafficLimit | ( | ) |
Definition at line 2145 of file fsInternetDownloader.cpp.
References m_uTrafficLimit.
Referenced by vmsDownloadMgrEx::GetTrafficLimit().
| void fsInternetDownloader::StopOnAccDenied | ( | BOOL | b | ) |
Definition at line 2140 of file fsInternetDownloader.cpp.
References m_bStopOnAccDenied.
Referenced by fsDownloadMgr::ApplyProperties(), and fsInternetDownloader().
| void fsInternetDownloader::StopOnFileNotFound | ( | BOOL | b | ) |
Definition at line 2135 of file fsInternetDownloader.cpp.
References m_bStopOnFileNotFound.
Referenced by fsDownloadMgr::ApplyProperties(), and fsInternetDownloader().
| void fsInternetDownloader::DontRestartIfNoRanges | ( | BOOL | b | ) |
Definition at line 2130 of file fsInternetDownloader.cpp.
References m_bDontRestartIfNoRanges.
Referenced by fsDownloadMgr::ApplyProperties().
| void fsInternetDownloader::ResetSections | ( | ) |
Definition at line 2122 of file fsInternetDownloader.cpp.
References m_cThreads, m_vSections, and StopDownloading().
Referenced by fsDownloadMgr::Reset().
| void fsInternetDownloader::SetOutputFile | ( | HANDLE | hOutFile | ) |
Definition at line 2117 of file fsInternetDownloader.cpp.
References m_hOutFile.
Referenced by fsDownloadMgr::CloseFile(), and fsDownloadMgr::OnNeedFile().
| UINT64 fsInternetDownloader::GetBytesLeft | ( | ) |
Definition at line 2098 of file fsInternetDownloader.cpp.
References m_dwDataLenInCache, m_vSections, fsSection::uDCurrent, and fsSection::uDEnd.
Referenced by vmsDownloadMgrEx::GetBytesLeft(), GetDownloadedBytesCount(), GetPercentDone(), CUpdateDlg::OnTimer(), and fsDownloadsMgr::ProcessDownloads().
| int fsInternetDownloader::GetDoneSectionCount | ( | ) |
Definition at line 2086 of file fsInternetDownloader.cpp.
References m_vSections, SS_DONE, and state().
Referenced by CreateAdditionalSection(), fsDownloadMgr::IsSectionCanBeAdded(), and StartDownloading().
| int fsInternetDownloader::GetDownloadingSectionCount | ( | ) |
Definition at line 2013 of file fsInternetDownloader.cpp.
References m_vSections, SS_DOWNLOADING, and state().
Referenced by fsDownloadMgr::_DownloaderEvents(), fsDownloadMgr::_threadDownloadMgr(), vmsDownloadMgrEx::GetDownloadingSectionCount(), and UpdateTrafficLimit().
| BOOL fsInternetDownloader::IsAllSectionsOk | ( | ) |
Definition at line 1998 of file fsInternetDownloader.cpp.
References FALSE, m_vSections, SS_DONE, SS_DOWNLOADING, state(), and TRUE.
Referenced by fsDownloadMgr::_DownloaderEvents(), and fsDownloadMgr::IsSectionCanBeAdded().
| int fsInternetDownloader::GetRunningSectionCount | ( | ) |
Definition at line 1993 of file fsInternetDownloader.cpp.
References m_cRunningThreads.
Referenced by __threadDownload_flushdata(), fsUpdateMgr::_DownloadMgrEvents(), vmsDownloadMgrEx::GetConnectionCount(), and fsDownloadMgr::StopSection().
| UINT64 fsInternetDownloader::GetSSFileSize | ( | ) |
Definition at line 1988 of file fsInternetDownloader.cpp.
References m_uSSFileSize.
Referenced by CWGUrlReceiver::AddDownload(), CreateAdditionalSection(), CreateMainSection(), FindMirrors(), vmsDownloadMgrEx::GetSSFileSize(), IsMayZIP(), CUpdateDlg::OnTimer(), fsDownloadsMgr::ProcessDownloads(), and fsDownloadMgr::ProcessSCR().
| BOOL fsInternetDownloader::IsRunning | ( | ) |
Definition at line 1983 of file fsInternetDownloader.cpp.
References m_cRunningThreads.
Referenced by fsDownloadMgr::_DownloaderEvents(), fsDownloadMgr::_threadReserveDiskSpace(), DeleteAllSections(), fsDownloadMgr::IsRunning(), fsDownloadMgr::OnSectionStopped(), QuerySize(), fsDownloadMgr::StartDownload(), StartDownloading(), and fsDownloadMgr::StopDownload().
| fsInternetResult fsInternetDownloader::GetSectionLastError | ( | int | iSection | ) |
Definition at line 1962 of file fsInternetDownloader.cpp.
References m_vSections.
Referenced by fsDownloadMgr::_DownloaderEvents().
| BOOL fsInternetDownloader::IsHavingError | ( | ) |
Definition at line 1957 of file fsInternetDownloader.cpp.
References m_bErrDownloading.
Referenced by fsDownloadMgr::IsSectionCanBeAdded().
| BOOL fsInternetDownloader::IsStoppedByUser | ( | ) |
Definition at line 1952 of file fsInternetDownloader.cpp.
References m_bNeedStop.
Referenced by vmsDownloadMgrEx::IsStoppedByUser(), and fsDownloadMgr::OnSectionStopped().
| BOOL fsInternetDownloader::IsDone | ( | ) |
Definition at line 1939 of file fsInternetDownloader.cpp.
References FALSE, m_vSections, SS_DONE, and state().
Referenced by fsDownloadMgr::_DownloaderEvents(), CreateAdditionalSection(), fsDownloadMgr::IsDone(), OpenUrl_imp(), StartDownloading(), and fsDownloadMgr::StartDownloading().
| UINT64 fsInternetDownloader::GetSectionMaxSize | ( | ) |
Definition at line 1923 of file fsInternetDownloader.cpp.
References m_vSections.
Referenced by fsDownloadMgr::AddSection().
| void fsInternetDownloader::SetMaxReconnectionNumber | ( | UINT | uMax | ) |
Definition at line 1918 of file fsInternetDownloader.cpp.
References m_uMaxAttempts.
Referenced by fsDownloadMgr::ApplyProperties().
| void fsInternetDownloader::SetEventFunc | ( | fsDownloaderEventFunc | pfn, | |
| LPVOID | lpParam | |||
| ) |
Definition at line 1904 of file fsInternetDownloader.cpp.
References m_lpEvent, and m_pfnEvents.
Referenced by fsDownloadMgr::fsDownloadMgr().
| UINT fsInternetDownloader::GetSpeed | ( | ) |
Definition at line 1899 of file fsInternetDownloader.cpp.
References fsSpeedMeter::GetSpeed(), and m_speed.
Referenced by fsDownloadMgr::_threadDownloadMgr(), vmsDownloadMgrEx::GetSpeed(), and CUpdateDlg::OnTimer().
| void fsInternetDownloader::LimitTraffic | ( | UINT | uLimit | ) |
Definition at line 1892 of file fsInternetDownloader.cpp.
References m_uTrafficLimit, and UpdateTrafficLimit().
Referenced by fsDownloadMgr::ApplyProperties(), and vmsDownloadMgrEx::LimitTraffic().
| BOOL fsInternetDownloader::IsDownloading | ( | ) |
Definition at line 1881 of file fsInternetDownloader.cpp.
References FALSE, m_vSections, SS_DOWNLOADING, state(), and TRUE.
Referenced by vmsDownloadMgrEx::IsDownloading().
| BOOL fsInternetDownloader::SaveSectionsState | ( | LPBYTE | pBuffer, | |
| LPDWORD | pdwSize | |||
| ) |
Definition at line 1439 of file fsInternetDownloader.cpp.
References FALSE, fsString::Length(), LPDWORD, LPSTR, m_dwState, m_strFileName, m_uLDFileSize, m_uSSFileSize, m_vSections, NULL, and TRUE.
Referenced by fsDownloadMgr::SaveState().
| BOOL fsInternetDownloader::RestoreSectionsState | ( | LPBYTE | pBuffer, | |
| DWORD | dwSize, | |||
| DWORD | dwVer | |||
| ) |
Definition at line 1487 of file fsInternetDownloader.cpp.
References ASSERT, FALSE, fsSection::file, fsSection::iSection, LPDWORD, m_dwState, m_strFileName, m_uLDFileSize, m_uSSFileSize, m_vSections, MY_MAX_PATH, NULL, fsSection::pThis, RestoreSectionsState_v5(), RestoreSectionsState_vlt5(), SS_DONE, SS_STOPPED, fsSection::state, TRUE, and fsSection::uSpeed.
Referenced by fsDownloadMgr::LoadState().
| BOOL fsInternetDownloader::RestoreSectionsState_vlt5 | ( | LPBYTE | pBuffer, | |
| DWORD | dwSize, | |||
| DWORD | dwVer | |||
| ) |
Definition at line 1547 of file fsInternetDownloader.cpp.
References FALSE, fsSection::file, LPDWORD, m_dwState, m_strFileName, m_uLDFileSize, m_uSSFileSize, m_vSections, MY_MAX_PATH, NULL, fsSection::pThis, RestoreSectionsState_vlt4(), SS_DONE, SS_STOPPED, fsSection::state, TRUE, and fsSection::uSpeed.
Referenced by RestoreSectionsState().
| BOOL fsInternetDownloader::RestoreSectionsState_vlt4 | ( | LPVOID | pBuffer, | |
| DWORD | dwSize | |||
| ) |
Definition at line 1599 of file fsInternetDownloader.cpp.
References FALSE, fsSection::file, m_uLDFileSize, m_uSSFileSize, m_vSections, NULL, fsSection::pThis, SS_DONE, SS_STOPPED, fsSection::state, TRUE, and fsSection::uSpeed.
Referenced by RestoreSectionsState_vlt5().
| void fsInternetDownloader::SetSectionMinSize | ( | UINT | uMinSize | ) |
Definition at line 1397 of file fsInternetDownloader.cpp.
References m_uSectionMinSize.
Referenced by fsDownloadMgr::ApplyProperties().
| int fsInternetDownloader::GetNumberOfSections | ( | ) |
Definition at line 1392 of file fsInternetDownloader.cpp.
References m_vSections.
Referenced by fsDownloadMgr::_threadDownloadMgr(), fsDownloadMgr::_threadReserveDiskSpace(), vmsDownloadMgrEx::GetNumberOfSections(), fsDownloadMgr::IsSectionCanBeAdded(), fsDownloadMgr::LoadState(), fsArchiveInternetStream::Open_imp(), fsDownloadMgr::OpenFile(), fsDownloadsMgr::RebuildServerList(), fsDownloadMgr::ReserveDiskSpace(), and StartDownloading().
| BOOL fsInternetDownloader::SetSection_TrafficLimit | ( | int | iSection, | |
| UINT | uLimit | |||
| ) |
| BOOL fsInternetDownloader::GetSectionInfo | ( | int | iSection, | |
| fsSection * | pSection, | |||
| BOOL | bNoCacheAccounting = FALSE | |||
| ) |
Definition at line 1363 of file fsInternetDownloader.cpp.
References fsInternetDownloader::fsSectionEx::dwCacheLen, FALSE, fsSection::file, m_vSections, NULL, TRUE, fsSection::uCurrent, and fsSection::uDCurrent.
Referenced by vmsDownloadMgrEx::GetSectionInfo(), fsDownloadMgr::OpenFile(), and fsDownloadsMgr::RebuildServerList().
| void fsInternetDownloader::SetRetryTime | ( | DWORD | dwMilliseconds | ) |
Definition at line 1358 of file fsInternetDownloader.cpp.
References m_uRetryTime.
Referenced by fsDownloadMgr::ApplyProperties().
| fsInternetResult fsInternetDownloader::AddSection | ( | BOOL | bQueryCreation = TRUE |
) |
Definition at line 121 of file fsInternetDownloader.cpp.
References CreateAdditionalSection(), CreateMainSection(), IR_ERROR, m_bErrDownloading, and m_vSections.
Referenced by fsDownloadMgr::AddSection().
| fsDownload_NetworkProperties * fsInternetDownloader::DNP | ( | int | nSection = -1 |
) |
Definition at line 112 of file fsInternetDownloader.cpp.
References m_dnp, m_vMirrs, and m_vSections.
Referenced by _threadDownload(), AddMirrorURL(), fsDownloadMgr::CreateByUrl(), FindMirrors(), fsDownloadMgr::fsDownloadMgr(), fsInternetDownloader(), get_URL(), fsDownloadMgr::GetDNP(), MeasureMirrorsSpeed(), fsArchiveInternetStream::Open_imp(), OpenUrl_imp(), QuerySize(), fsDownloadsMgr::RebuildServerList(), and fsDownloadMgr::~fsDownloadMgr().
| void fsInternetDownloader::ApplyProperties | ( | class fsInternetURLFile * | pFile, | |
| fsDownload_NetworkProperties * | dnp | |||
| ) |
Definition at line 2043 of file fsInternetDownloader.cpp.
References fsDownload_NetworkProperties::bUseCookie, fsDownload_NetworkProperties::bUseHttp11, fsURL::Create(), fsDownload_NetworkProperties::dwFtpFlags, fsDownload_NetworkProperties::enFtpTransferType, fsDownload_NetworkProperties::enProtocol, FALSE, fsFilePathFromUrlPath(), fsNPToScheme(), FTP_DONTSENDLIST, FTP_USEPASSIVEMODE, fsInternetURLFile::FtpSetDontUseLIST(), fsInternetURLFile::FtpSetTransferType(), FTT_UNKNOWN, IR_SUCCESS, LPSTR, NP_FTP, NP_HTTP, NP_HTTPS, NULL, fsDownload_NetworkProperties::pszCookies, fsDownload_NetworkProperties::pszPathName, fsDownload_NetworkProperties::pszPostData, fsDownload_NetworkProperties::pszReferer, fsDownload_NetworkProperties::pszServerName, fsInternetURLFile::SetCookies(), fsInternetURLFile::SetPostData(), fsInternetURLFile::SetReferer(), fsInternetURLFile::UseCookie(), fsInternetURLFile::UseFtpPassiveMode(), fsInternetURLFile::UseHttp11(), and fsDownload_NetworkProperties::uServerPort.
Referenced by fsArchiveInternetStream::Open_imp(), OpenUrl_imp(), and QuerySize().
| void fsInternetDownloader::ApplyProxySettings | ( | fsInternetSession * | pSession, | |
| fsDownload_NetworkProperties * | dnp | |||
| ) |
Definition at line 3041 of file fsInternetDownloader.cpp.
References m_uTimeout, fsDownload_NetworkProperties::pszProxyPassword, fsDownload_NetworkProperties::pszProxyUserName, fsInternetSession::SetProxyAuth(), and fsInternetSession::SetTimeout().
Referenced by FindMirrors(), fsArchiveInternetStream::Open_imp(), OpenUrl_imp(), and QuerySize().
| DWORD WINAPI fsInternetDownloader::_threadOpenUrl | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 3149 of file fsInternetDownloader.cpp.
References fsInternetDownloader::_inc_tOU_param::dnp, DNPF_IMMEDIATELY_SEND_AUTH_AS_BASIC, fsDownload_NetworkProperties::dwFlags, fsDownload_NetworkProperties::enProtocol, fsNPToScheme(), fsInternetURLFile::Open(), fsInternetDownloader::_inc_tOU_param::pFile, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszPathName, fsDownload_NetworkProperties::pszServerName, fsDownload_NetworkProperties::pszUserName, fsDownload_NetworkProperties::uServerPort, and fsInternetDownloader::_inc_tOU_param::uStartPos.
Referenced by OpenUrl_imp().
| void fsInternetDownloader::OnDataDownloaded | ( | UINT64 | nDataSize | ) | [static, protected] |
Definition at line 3119 of file fsInternetDownloader.cpp.
References fsSpeedMeter::Done(), vmsCriticalSection::Lock(), m_csDataRcvd, m_nTotalTraffic, m_TotalSpeed, and vmsCriticalSection::Unlock().
Referenced by _threadDownload().
| BOOL fsInternetDownloader::IsMayZIP | ( | BOOL | bIsExeMay | ) | [protected] |
Definition at line 3015 of file fsInternetDownloader.cpp.
References FALSE, GetSSFileSize(), IDS_USEZIPPREVIEW, IDS_ZIPPREVIEWPERFORMED, m_dwState, m_strFileName, NULL, and TRUE.
Referenced by _threadDownload(), CheckIsZIP(), and CreateAdditionalSection().
| void fsInternetDownloader::ApplyArchiveRebuilding | ( | fsArchive::fsArchiveRebuilder * | ar, | |
| UINT64 | uAddOffset = 0 | |||
| ) | [protected] |
Definition at line 2930 of file fsInternetDownloader.cpp.
References fsArchive::fsArchiveFilePosition::dwDstBegin, fsArchive::fsArchiveFilePosition::dwDstEnd, fsArchive::fsArchiveFilePosition::dwSrcBegin, fsArchive::fsArchiveFilePosition::dwSrcEnd, fsSection::file, fsArchive::fsArchiveRebuilder::GetFileCount(), fsArchive::fsArchiveRebuilder::GetFilePosition(), GetLDFileSize(), fsArchive::fsArchiveRebuilder::GetResultingArchiveSize(), IR_SUCCESS, fsSection::iSection, fsSection::lastErr, m_uLDFileSize, m_vSections, fsSection::nMirrorURL, NULL, fsSection::pThis, SS_DONE, SS_STOPPED, fsSection::state, TSECT, fsSection::uCurrent, fsSection::uDCurrent, fsSection::uDEnd, fsSection::uDStart, fsSection::uEnd, and fsSection::uStart.
Referenced by CheckIsZIP().
| fsInternetResult fsInternetDownloader::CheckIsZIP | ( | UINT64 | uStartPosition, | |
| fsInternetURLFile ** | ppFileToCloseIfNeed | |||
| ) | [protected] |
Definition at line 2846 of file fsInternetDownloader.cpp.
References ApplyArchiveRebuilding(), fsArchive::ARR_STREAMERROR, fsArchive::fsArchiveFileStream::Attach(), fsArchiveInternetStream::Close(), DE_ARCHIVEDETECTED, DE_CONFIRMARCHIVEDETECTION, DE_NEEDFILE, DE_ZIPPREVIEWFAILED, DE_ZIPPREVIEWSTARTED, fsArchive::fsArchiveFileStream::Detach(), Event(), FALSE, fsArchiveInternetStream::GetLastNetworkErr(), IDS_ZIPPREVIEWALLOWED, IDS_ZIPPREVIEWPERFORMED, IR_S_FALSE, IR_SUCCESS, IsMayZIP(), m_dwState, m_hOutFile, m_pZipPreviewStream, m_uMaxAttempts, m_uSSFileSize, NULL, fsArchiveInternetStream::Open(), fsArchive::fsArchiveRebuilder::OpenArchive(), SAFE_DELETE, fsArchive::fsArchiveRebuilder::SaveArchiveHeaders(), fsArchive::fsArchiveFileStream::Seek(), fsArchiveInternetStream::Set_MaxRetriesCount(), fsArchive::fsArchiveRebuilder::SetFileSize(), fsArchive::fsArchiveRebuilder::SetSFXSize(), fsArchive::ST_BEGIN, and TRUE.
Referenced by _threadDownload().
| BOOL fsInternetDownloader::RestoreSectionsState_v5 | ( | LPBYTE | pBuffer, | |
| DWORD | dwSize | |||
| ) | [protected] |
Definition at line 2797 of file fsInternetDownloader.cpp.
References FALSE, fsSection::file, LPDWORD, m_dwState, m_strFileName, m_uLDFileSize, m_uSSFileSize, m_vSections, MY_MAX_PATH, NULL, fsSection::pThis, SS_DONE, SS_STOPPED, fsSection::state, TRUE, and fsSection::uSpeed.
Referenced by RestoreSectionsState().
| fsInternetResult fsInternetDownloader::Auto_SearchMirrors | ( | ) | [protected] |
Definition at line 2698 of file fsInternetDownloader.cpp.
References FALSE, FindMirrors(), IR_S_FALSE, m_bMirrDontSearchIfSizeUnk, m_bSearchForMirrors, m_uLDFileSize, m_uMirrFileMinSize, and m_uSSFileSize.
Referenced by CreateMainSection(), and StartDownloading().
| UINT fsInternetDownloader::FindNotBusyMirrorIndex | ( | ) | [protected] |
Definition at line 2576 of file fsInternetDownloader.cpp.
References m_vMirrs, and m_vSections.
Referenced by CreateAdditionalSection(), and OpenUrl_imp().
| void fsInternetDownloader::_MirrMgrEvents | ( | fsMirrorURLsMgrEvent | ev, | |
| LPVOID | lp | |||
| ) | [static, protected] |
Definition at line 2560 of file fsInternetDownloader.cpp.
References DE_CONNECTINGMIRRSERVER, DE_GETTINGMIRRSEARCHRESULTS, Event(), MUME_CONNECTINGSEARCHSERVER, and MUME_RETREIVINGSEARCHRESULTS.
Referenced by FindMirrors().
| void fsInternetDownloader::_InetFileDialogFunc | ( | fsInetFileDialogDirection | dir, | |
| LPCSTR | pszMsg, | |||
| LPVOID | lp1, | |||
| LPVOID | lp2 | |||
| ) | [static, protected] |
Definition at line 2411 of file fsInternetDownloader.cpp.
References DE_DIALOGWITHSERVER, fsDlgWithServerInfo::dir, Event(), simple_client::info, fsDlgWithServerInfo::iSection, m_bDetLog, and fsDlgWithServerInfo::pszMsg.
Referenced by _threadDownload(), OpenUrl_imp(), and QuerySize().
| fsInternetResult fsInternetDownloader::QuerySize | ( | fsInternetURLFile * | file | ) | [protected] |
Definition at line 2284 of file fsInternetDownloader.cpp.
References ApplyProperties(), ApplyProxySettings(), fsURL::Crack(), fsURL::Create(), vmsInternetSession::Create(), DNP(), DNPF_IMMEDIATELY_SEND_AUTH_AS_BASIC, FALSE, fsDNP_ApplyUrl(), fsFileNameFromUrlPath(), fsNPToScheme(), fsPathFromUrlPath(), fsInternetURLFile::GetLastError(), fsInternetURLFile::GetSuggestedFileName(), fsInternetURLFile::Initialize(), IR_EXTERROR, IR_NEEDREDIRECT, IR_S_FALSE, IR_SERVERUNKERROR, IR_SUCCESS, fsInternetURLFile::IsResumeSupported(), fsString::Length(), m_bNeedStop, m_bWasAccessedAtLeastOnce, m_enRST, m_strFileName, m_strSuggFileName, m_vSections, NP_FTP, QuerySize(), fsInternetURLFile::QuerySize(), RST_NONE, TRUE, and vmsMakeWinInetProxy().
| void fsInternetDownloader::UpdateTrafficLimit | ( | ) | [protected] |
Definition at line 2029 of file fsInternetDownloader.cpp.
References GetDownloadingSectionCount(), m_uTrafficLimit, and m_vSections.
Referenced by _threadDownload(), and LimitTraffic().
| BOOL fsInternetDownloader::SleepInterval | ( | ) | [protected] |
Definition at line 1967 of file fsInternetDownloader.cpp.
References FALSE, m_bNeedStop, m_uRetryTime, and TRUE.
Referenced by _threadDownload().
| DWORD fsInternetDownloader::Event | ( | fsDownloaderEvent | enEvent, | |
| UINT | uDesc = 0 | |||
| ) | [protected] |
Definition at line 1910 of file fsInternetDownloader.cpp.
References m_lpEvent, m_pfnEvents, and TRUE.
Referenced by _InetFileDialogFunc(), _MirrMgrEvents(), _threadDownload(), CheckIsZIP(), CreateAdditionalSection(), CreateMainSection(), CreateSection(), FindMirrors(), LaunchOneMoreSection(), OpenUrl_imp(), and StartDownloading().
| fsInternetResult fsInternetDownloader::OpenUrl | ( | UINT64 | uStartPos, | |
| fsInternetURLFile ** | ppFile, | |||
| int | iSectIndex, | |||
| UINT & | nMirror, | |||
| BOOL | bCheckFileSize = FALSE, |
|||
| LPCSTR | pszContentTypeReq = NULL | |||
| ) | [protected] |
Definition at line 1051 of file fsInternetDownloader.cpp.
References OpenUrl_imp().
Referenced by _threadDownload(), CreateAdditionalSection(), CreateMainSection(), and StartDownloading().
| fsInternetResult fsInternetDownloader::OpenUrl_imp | ( | UINT64 | uStartPos, | |
| fsInternetURLFile ** | ppFile, | |||
| int | iSectIndex, | |||
| UINT & | nMirror, | |||
| BOOL | bCheckFileSize, | |||
| int | iAttempt, | |||
| LPCSTR | pszContentTypeReq = NULL | |||
| ) | [protected] |
Definition at line 1056 of file fsInternetDownloader.cpp.
References _InetFileDialogFunc(), _threadOpenUrl(), ApplyProperties(), ApplyProxySettings(), ASSERT, fsURL::Crack(), fsURL::Create(), vmsInternetSession::Create(), DE_BADFILESIZE, DE_ERRFROMSERVER, DE_REDIRECTING, DE_REDIRECTINGOKCONTINUEOPENING, DE_TRYINGANOTHERMIRROR, fsInternetDownloader::_inc_tOU_param::dnp, DNP(), fsDownload_NetworkProperties::enAccType, fsDownload_NetworkProperties::enFtpTransferType, fsDownload_NetworkProperties::enProtocol, Event(), FALSE, FindNotBusyMirrorIndex(), fsDNP_ApplyUrl(), fsFileNameFromUrlPath(), fsnew1, fsNPToScheme(), fsPathFromUrlPath(), fsInternetURLFile::FtpSetTransferType(), FTT_ASCII, FTT_BINARY, FTT_UNKNOWN, fsInternetURLFile::GetFileSize(), fsInternetURLFile::GetLastError(), fsInternetURLFile::GetSuggestedFileName(), fsInternetURLFile::Initialize(), IR_BADFILESIZE, IR_DOUBTFUL_RANGESRESPONSE, IR_ERROR, IR_EXTERROR, IR_NEEDREDIRECT, IR_RANGESNOTAVAIL, IR_S_FALSE, IR_SERVERUNKERROR, IR_SUCCESS, IsDone(), IsExtInExtsStr(), fsInternetURLFile::IsResumeSupported(), fsString::Length(), LOG, LPSTR, LPVOID, m_bNeedStop, m_bWasAccessedAtLeastOnce, m_csOpenUrl, m_enRST, m_fileDate, m_pOpeningFile, m_strContentType, m_strFileName, m_strSuggFileName, m_uMaxAttempts, m_uSSFileSize, m_vMirrs, m_vSections, MY_MAX_PATH, nl, NP_FTP, NULL, fsInternetDownloader::_inc_tOU_param::pFile, fsDownload_NetworkProperties::pszAgent, fsDownload_NetworkProperties::pszASCIIExts, fsDownload_NetworkProperties::pszPassword, fsDownload_NetworkProperties::pszPathName, fsDownload_NetworkProperties::pszProxyName, fsDownload_NetworkProperties::pszServerName, fsDownload_NetworkProperties::pszUserName, fsInternetDownloader::_inc_tOU_param::pthis, RST_NONE, SAFE_DELETE, SAFE_DELETE_ARRAY, fsSpeaking::SetDialogFunc(), TRUE, fsDownload_NetworkProperties::uServerPort, fsInternetDownloader::_inc_tOU_param::uStartPos, and vmsMakeWinInetProxy().
Referenced by OpenUrl().
| DWORD WINAPI fsInternetDownloader::_threadDownload | ( | LPVOID | lp | ) | [static, protected] |
Definition at line 492 of file fsInternetDownloader.cpp.
References __threadDownload_flushdata(), _InetFileDialogFunc(), ASSERT, BOOL, CHECK_NEED_STOP, vmsSpeedTracker::CheckCurrentSpeedTooLow(), CheckIsZIP(), CURRENT_DL_POS, CURRENT_DW_POS, vmsSpeedTracker::CurrentSpeedIs(), DE_ALLSTOPPEDORDONE, DE_CONNECTED, DE_CONNECTING, DE_ERROROCCURED, DE_FAILCONNECT, DE_MAYADDSECTION, DE_PAUSE, DE_SECTDOWNLOADING, DE_SECTIONDONE, DE_SECTIONSTOPPED, DE_SPEEDISTOOLOW, DE_WRITEERROR, DNP(), DNPF_RESTARTSECTIONWHENSPEEDTOOLOW, fsSpeedMeter::Done(), fsInternetDownloader::fsSectionEx::dwCacheLen, fsDownload_NetworkProperties::dwFlags, fsDownload_NetworkProperties::enProtocol, Event(), FALSE, fsSection::file, fsInternetURLFile::FtpGetTransferType(), FTT_ASCII, fsInternetURLFile::GetFileSize(), GetLastError(), IR_DOUBTFUL_RANGESRESPONSE, IR_ERROR, IR_LOSTCONNECTION, IR_RANGESNOTAVAIL, IR_S_FALSE, IR_SUCCESS, IR_WININETUNKERROR, is_PauseMode(), fsSection::iSection, IsMayZIP(), fsSection::lastErr, LOG, LPVOID, m_bErrDownloading, m_bNeedStop, m_cRunningThreads, m_csDone, m_csSections, m_cThreads, m_dnp, m_dwDataLenInCache, m_speed, m_uLDFileSize, m_uMaxAttempts, m_uRetryTime, m_vMirrs, m_vSections, nl, fsSection::nMirrorURL, fsTicksMgr::Now(), NP_FTP, NULL, OnDataDownloaded(), OpenUrl(), fsSection::pThis, fsInternetURLFile::Read(), vmsSpeedTracker::Reset(), fsSpeedMeter::Reset(), SAFE_DELETE, SAFE_DELETE_ARRAY, vmsSpeedTracker::set_LowSpeedDuration(), vmsSpeedTracker::set_LowSpeedFactor(), fsSpeaking::SetDialogFunc(), SleepInterval(), SS_DONE, SS_DOWNLOADING, SS_ERROR, SS_ERRSTOPPED, SS_NEEDSTOP, SS_RECONNECTING, SS_STOPPED, SS_WRITEERROR, fsSection::state, TRUE, TSECT, fsSection::uCurrent, fsSection::uDCurrent, fsSection::uDEnd, fsSection::uDStart, fsSection::uEnd, UpdateTrafficLimit(), fsSection::uSpeed, fsSection::uSpeedLimit, fsSection::uStart, fsDownload_NetworkProperties::wLowSpeed_Duration, fsDownload_NetworkProperties::wLowSpeed_Factor, fsDownload_NetworkProperties::wRollBackSize, fsArchive::ZIP_BEGIN_SIG, and fsArchive::ZIP_SFXMAXSIZE.
Referenced by CreateSection(), LaunchOneMoreSection(), and StartDownloading().
| fsInternetResult fsInternetDownloader::CreateAdditionalSection | ( | BOOL | bQueryCreation = TRUE |
) | [protected] |
Definition at line 186 of file fsInternetDownloader.cpp.
References ASSERT, CreateSection(), DE_QUERYNEWSECTION, Event(), FALSE, fsSection::file, FindNotBusyMirrorIndex(), GetDoneSectionCount(), GetSSFileSize(), IR_RANGESNOTAVAIL, IR_S_FALSE, IR_SUCCESS, IsDone(), IsMayZIP(), IsResumeSupported(), LOG, m_bAddingSection, m_bNoNewSections, m_cBaseSectCreatingNow, m_csAddSection, m_csSections, m_uSectionMinSize, m_uSSFileSize, m_vMirrs, m_vSections, MAX_NOT_COMPLETED_SECTION_COUNT, nl, fsSection::nMirrorURL, OpenUrl(), RST_NONE, SAFE_DELETE, SS_DONE, state(), TRUE, TSECT, fsSection::uCurrent, fsSection::uDCurrent, fsSection::uDEnd, fsSection::uDStart, fsSection::uEnd, fsSection::uStart, and fsArchive::ZIP_SFXMAXSIZE.
Referenced by AddSection().
| BOOL fsInternetDownloader::CreateSection | ( | fsSection & | sect, | |
| BOOL | bCreateThread = TRUE, |
|||
| BOOL | bReduceSCN = TRUE | |||
| ) | [protected] |
Definition at line 338 of file fsInternetDownloader.cpp.
References _threadDownload(), DE_NEEDFILE, DE_NEEDFILE_FINALINITIALIZATION, DE_SECTIONADDED, DE_SECTIONSTARTED, Event(), FALSE, IR_SUCCESS, fsSection::iSection, fsSection::lastErr, m_cBaseSectCreatingNow, m_cRunningThreads, m_cThreads, m_vMirrs, m_vSections, fsSection::nMirrorURL, NULL, fsSection::pThis, SS_CREATING, SS_STOPPED, fsSection::state, TRUE, fsSection::uSpeed, and fsSection::uSpeedLimit.
Referenced by CreateAdditionalSection(), CreateMainSection(), and QuerySize().
| fsInternetResult fsInternetDownloader::CreateMainSection | ( | UINT | uStartFrom = 0, |
|
| BOOL | bQueryCreation = TRUE | |||
| ) | [protected] |
Definition at line 132 of file fsInternetDownloader.cpp.
References Auto_SearchMirrors(), CreateSection(), DE_QUERYNEWSECTION, DE_STARTINGDOWNLOAD, DE_STARTINGDOWNLOAD_CONNECTING, DE_STARTINGDOWNLOAD_FAILEDTOCONNECT, Event(), FALSE, fsSection::file, fsInternetURLFile::GetFileSize(), GetSSFileSize(), IR_S_FALSE, IR_SUCCESS, m_bNeedStop, m_bNoNewSections, m_cBaseSectCreatingNow, m_csAddSection, m_uLDFileSize, m_uSSFileSize, OpenUrl(), TSECT, fsSection::uCurrent, fsSection::uDCurrent, fsSection::uDEnd, fsSection::uDStart, fsSection::uEnd, and fsSection::uStart.
Referenced by AddSection(), and StartDownloading().
| BOOL fsInternetDownloader::__threadDownload_flushdata | ( | fsSectionEx * | sect, | |
| LPBYTE | pBuffer, | |||
| DWORD | dwRead, | |||
| LPBYTE & | pbCache, | |||
| DWORD & | dwCacheSize, | |||
| DWORD & | dwCacheLen | |||
| ) | [static, private] |
Definition at line 382 of file fsInternetDownloader.cpp.
References _App, BOOL, FALSE, fsAppSettings::FileWriteCacheSize(), fsSetFilePointer(), GetRunningSectionCount(), m_csSections, m_csWriteToFile, m_dwDataLenInCache, m_dwForceCacheSizePerSection, m_hOutFile, NULL, fsSection::pThis, SAFE_DELETE_ARRAY, TRUE, fsSection::uCurrent, and fsSection::uDCurrent.
Referenced by _threadDownload().
DWORD fsInternetDownloader::m_dwForceCacheSizePerSection [protected] |
Definition at line 451 of file fsInternetDownloader.h.
Referenced by __threadDownload_flushdata(), fsInternetDownloader(), and StartDownloading().
DWORD fsInternetDownloader::m_dwDataLenInCache [protected] |
Definition at line 453 of file fsInternetDownloader.h.
Referenced by __threadDownload_flushdata(), _threadDownload(), fsInternetDownloader(), GetBytesLeft(), GetDownloadedBytesCount(), and StartDownloading().
UINT64 fsInternetDownloader::m_nTotalTraffic = 0 [static, protected] |
Definition at line 457 of file fsInternetDownloader.h.
Referenced by get_TotalTraffic(), OnDataDownloaded(), and ResetTotalTrafficInfo().
fsSpeedMeter fsInternetDownloader::m_TotalSpeed [static, protected] |
Definition at line 460 of file fsInternetDownloader.h.
Referenced by get_TotalSpeed(), and OnDataDownloaded().
vmsCriticalSection fsInternetDownloader::m_csDataRcvd [static, protected] |
Definition at line 462 of file fsInternetDownloader.h.
Referenced by OnDataDownloaded(), and ResetTotalTrafficInfo().
BOOL fsInternetDownloader::m_bPauseMode = FALSE [static, protected] |
Definition at line 464 of file fsInternetDownloader.h.
Referenced by is_PauseMode(), and set_PauseMode().
BOOL fsInternetDownloader::m_bWasAccessedAtLeastOnce [protected] |
Definition at line 465 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), is_WasAccessedAtLeastOnce(), OpenUrl_imp(), and QuerySize().
FILETIME fsInternetDownloader::m_fileDate [protected] |
Definition at line 466 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), get_FileDate(), and OpenUrl_imp().
CRITICAL_SECTION fsInternetDownloader::m_csSections [protected] |
Definition at line 467 of file fsInternetDownloader.h.
Referenced by __threadDownload_flushdata(), _threadDownload(), CreateAdditionalSection(), fsInternetDownloader(), StartDownloading(), and ~fsInternetDownloader().
BOOL fsInternetDownloader::m_bAddingSection [protected] |
Definition at line 469 of file fsInternetDownloader.h.
Referenced by CreateAdditionalSection(), fsInternetDownloader(), and RemoveMirror().
UINT fsInternetDownloader::m_uTimeout [protected] |
Definition at line 471 of file fsInternetDownloader.h.
Referenced by ApplyProxySettings(), fsInternetDownloader(), and Set_Timeout().
Definition at line 476 of file fsInternetDownloader.h.
Referenced by CheckIsZIP(), fsInternetDownloader(), and StopDownloading().
fsString fsInternetDownloader::m_strContentType [protected] |
Definition at line 480 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), GetContentType(), and OpenUrl_imp().
DWORD fsInternetDownloader::m_dwState [protected] |
Definition at line 481 of file fsInternetDownloader.h.
Referenced by CheckIsZIP(), DeleteAllSections(), FindMirrors(), fsInternetDownloader(), GetState(), IsMayZIP(), IsMirrSearchPerformed(), RemoveAllMirrors(), RestoreSectionsState(), RestoreSectionsState_v5(), RestoreSectionsState_vlt5(), SaveSectionsState(), and UseZipPreview().
CRITICAL_SECTION fsInternetDownloader::m_csOpenUrl [protected] |
Definition at line 482 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), OpenUrl_imp(), QuerySize(), RemoveMirror(), and ~fsInternetDownloader().
BOOL fsInternetDownloader::m_bMirrDontSearchIfSizeUnk [protected] |
Definition at line 486 of file fsInternetDownloader.h.
Referenced by Auto_SearchMirrors(), and Set_MirrDontSearchIfSizeUnk().
BOOL fsInternetDownloader::m_uMirrRecalcSpeedTime [protected] |
Definition at line 487 of file fsInternetDownloader.h.
UINT fsInternetDownloader::m_cMaxMirrs [protected] |
Definition at line 488 of file fsInternetDownloader.h.
Referenced by FindMirrors(), and Set_MirrMaxCount().
UINT fsInternetDownloader::m_uMirrFileMinSize [protected] |
Definition at line 489 of file fsInternetDownloader.h.
Referenced by Auto_SearchMirrors(), fsInternetDownloader(), and Set_MirrFileMinSize().
BOOL fsInternetDownloader::m_bMirrMeasureSpeed [protected] |
Definition at line 490 of file fsInternetDownloader.h.
Referenced by AddMirror(), FindMirrors(), fsInternetDownloader(), and Set_MirrCalcSpeed().
BOOL fsInternetDownloader::m_bSearchForMirrors [protected] |
Definition at line 495 of file fsInternetDownloader.h.
Referenced by Auto_SearchMirrors(), fsInternetDownloader(), and Set_SearchForMirrors().
fsMirrorURLsMgr* fsInternetDownloader::m_pMirrURLMgr [protected] |
Definition at line 497 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), and StopDownloading().
BOOL fsInternetDownloader::m_bDetLog [protected] |
Definition at line 498 of file fsInternetDownloader.h.
Referenced by _InetFileDialogFunc(), fsInternetDownloader(), and UseDetailedLog().
fsString fsInternetDownloader::m_strSuggFileName [protected] |
Definition at line 503 of file fsInternetDownloader.h.
Referenced by GetSuggestedFileName(), OpenUrl_imp(), and QuerySize().
int fsInternetDownloader::m_cBaseSectCreatingNow [protected] |
Definition at line 505 of file fsInternetDownloader.h.
Referenced by CreateAdditionalSection(), CreateMainSection(), CreateSection(), fsInternetDownloader(), GetCreatingNowSectionCount(), RemoveMirror(), and StartDownloading().
fsResumeSupportType fsInternetDownloader::m_enRST [protected] |
Definition at line 506 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), IsResumeSupported(), OpenUrl_imp(), and QuerySize().
CRITICAL_SECTION fsInternetDownloader::m_csDone [protected] |
Definition at line 507 of file fsInternetDownloader.h.
Referenced by _threadDownload(), fsInternetDownloader(), and ~fsInternetDownloader().
fsInternetURLFile* fsInternetDownloader::m_pOpeningFile [protected] |
Definition at line 509 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), OpenUrl_imp(), QuerySize(), and StopDownloading().
BOOL fsInternetDownloader::m_bStopOnAccDenied [protected] |
Definition at line 511 of file fsInternetDownloader.h.
Referenced by StartDownloading(), and StopOnAccDenied().
BOOL fsInternetDownloader::m_bStopOnFileNotFound [protected] |
Definition at line 512 of file fsInternetDownloader.h.
Referenced by StartDownloading(), and StopOnFileNotFound().
BOOL fsInternetDownloader::m_bDontRestartIfNoRanges [protected] |
Definition at line 514 of file fsInternetDownloader.h.
Referenced by DontRestartIfNoRanges(), fsInternetDownloader(), and StartDownloading().
UINT64 fsInternetDownloader::m_uSSFileSize [protected] |
Definition at line 516 of file fsInternetDownloader.h.
Referenced by Auto_SearchMirrors(), CheckIsZIP(), CreateAdditionalSection(), CreateMainSection(), DeleteAllSections(), fsInternetDownloader(), GetSSFileSize(), OpenUrl_imp(), QuerySize(), RestoreSectionsState(), RestoreSectionsState_v5(), RestoreSectionsState_vlt4(), RestoreSectionsState_vlt5(), SaveSectionsState(), and StartDownloading().
UINT64 fsInternetDownloader::m_uLDFileSize [protected] |
Definition at line 517 of file fsInternetDownloader.h.
Referenced by _threadDownload(), ApplyArchiveRebuilding(), Auto_SearchMirrors(), CreateMainSection(), DeleteAllSections(), fsInternetDownloader(), GetLDFileSize(), QuerySize(), RestoreSectionsState(), RestoreSectionsState_v5(), RestoreSectionsState_vlt4(), RestoreSectionsState_vlt5(), and SaveSectionsState().
fsSpeedMeter fsInternetDownloader::m_speed [protected] |
Definition at line 520 of file fsInternetDownloader.h.
Referenced by _threadDownload(), GetSpeed(), and StartDownloading().
CRITICAL_SECTION fsInternetDownloader::m_csAddSection [protected] |
Definition at line 523 of file fsInternetDownloader.h.
Referenced by CreateAdditionalSection(), CreateMainSection(), fsInternetDownloader(), QuerySize(), and ~fsInternetDownloader().
UINT fsInternetDownloader::m_uTrafficLimit [protected] |
Definition at line 526 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), GetTrafficLimit(), LimitTraffic(), and UpdateTrafficLimit().
volatile UINT fsInternetDownloader::m_cThreads [protected] |
Definition at line 528 of file fsInternetDownloader.h.
Referenced by _threadDownload(), CreateSection(), fsInternetDownloader(), IsCompletelyStopped(), LaunchOneMoreSection(), ResetSections(), StartDownloading(), StopDownloading(), and ~fsInternetDownloader().
volatile UINT fsInternetDownloader::m_cRunningThreads [protected] |
Definition at line 528 of file fsInternetDownloader.h.
Referenced by _threadDownload(), CreateSection(), fsInternetDownloader(), GetRunningSectionCount(), IsRunning(), LaunchOneMoreSection(), and StartDownloading().
volatile BOOL fsInternetDownloader::m_bNeedStop [protected] |
Definition at line 529 of file fsInternetDownloader.h.
Referenced by _threadDownload(), CreateMainSection(), FindMirrors(), fsInternetDownloader(), IsStoppedByUser(), MeasureMirrorsSpeed(), OpenUrl_imp(), QuerySize(), SleepInterval(), StartDownloading(), and StopDownloading().
UINT fsInternetDownloader::m_uSectionMinSize [protected] |
Definition at line 530 of file fsInternetDownloader.h.
Referenced by CreateAdditionalSection(), fsInternetDownloader(), and SetSectionMinSize().
CRITICAL_SECTION fsInternetDownloader::m_csWriteToFile [protected] |
Definition at line 531 of file fsInternetDownloader.h.
Referenced by __threadDownload_flushdata(), fsInternetDownloader(), LockWriteFile(), and ~fsInternetDownloader().
HANDLE fsInternetDownloader::m_hOutFile [protected] |
Definition at line 532 of file fsInternetDownloader.h.
Referenced by __threadDownload_flushdata(), CheckIsZIP(), fsInternetDownloader(), and SetOutputFile().
UINT fsInternetDownloader::m_uRetryTime [protected] |
Definition at line 533 of file fsInternetDownloader.h.
Referenced by _threadDownload(), fsInternetDownloader(), SetRetryTime(), and SleepInterval().
BOOL fsInternetDownloader::m_bErrDownloading [protected] |
Definition at line 545 of file fsInternetDownloader.h.
Referenced by _threadDownload(), AddSection(), fsInternetDownloader(), and IsHavingError().
Definition at line 546 of file fsInternetDownloader.h.
Referenced by _threadDownload(), DNP(), and fsInternetDownloader().
fs::list<fsSectionEx> fsInternetDownloader::m_vSections [protected] |
Definition at line 561 of file fsInternetDownloader.h.
Referenced by _threadDownload(), AddSection(), ApplyArchiveRebuilding(), CreateAdditionalSection(), CreateSection(), DeleteAllSections(), DNP(), FindNotBusyMirrorIndex(), GetBytesLeft(), GetDoneSectionCount(), GetDownloadedBytesCount(), GetDownloadingSectionCount(), GetMirrorRefs(), GetNumberOfSections(), GetSectionInfo(), GetSectionLastError(), GetSectionMaxSize(), GetStoppedSectionCount(), IsAllSectionsOk(), IsDone(), IsDownloading(), LaunchOneMoreSection(), OpenUrl_imp(), QuerySize(), RemoveMirror(), ResetSections(), RestoreSectionsState(), RestoreSectionsState_v5(), RestoreSectionsState_vlt4(), RestoreSectionsState_vlt5(), SaveSectionsState(), SetSection_TrafficLimit(), StartDownloading(), StopDownloading(), StopSection(), and UpdateTrafficLimit().
Definition at line 562 of file fsInternetDownloader.h.
Referenced by Event(), fsInternetDownloader(), and SetEventFunc().
LPVOID fsInternetDownloader::m_lpEvent [protected] |
UINT fsInternetDownloader::m_uMaxAttempts [protected] |
Definition at line 564 of file fsInternetDownloader.h.
Referenced by _threadDownload(), CheckIsZIP(), fsInternetDownloader(), OpenUrl_imp(), and SetMaxReconnectionNumber().
BOOL fsInternetDownloader::m_bNoNewSections [protected] |
Definition at line 565 of file fsInternetDownloader.h.
Referenced by CreateAdditionalSection(), CreateMainSection(), and StartDownloading().
fs::list<fsMirrorURLInfo> fsInternetDownloader::m_vMirrs [protected] |
Definition at line 584 of file fsInternetDownloader.h.
Referenced by _threadDownload(), AddMirror(), CreateAdditionalSection(), CreateSection(), DNP(), FindNotBusyMirrorIndex(), GetCreatingNowSectionCount(), GetMirrorIsGood(), GetMirrorPingTime(), GetMirrorURLCount(), IsSectionCreatingNow(), MeasureMirrorsSpeed(), MirrorDNP(), OpenUrl_imp(), RemoveAllMirrors(), RemoveMirror(), Set_MirrPingTime(), StartDownloading(), and ~fsInternetDownloader().
DWORD fsInternetDownloader::m_dwBaseServerPingTime [protected] |
Definition at line 585 of file fsInternetDownloader.h.
Referenced by fsInternetDownloader(), Get_BaseServerPingTime(), MeasureMirrorsSpeed(), and Set_BaseServerPingTime().
fsString fsInternetDownloader::m_strFileName [protected] |
Definition at line 586 of file fsInternetDownloader.h.
Referenced by FindMirrors(), Get_FileName(), IsMayZIP(), OpenUrl_imp(), QuerySize(), RemoveAllMirrors(), RestoreSectionsState(), RestoreSectionsState_v5(), RestoreSectionsState_vlt5(), and SaveSectionsState().
int fsInternetDownloader::m_cMirrsFound [protected] |
Definition at line 588 of file fsInternetDownloader.h.
Referenced by FindMirrors(), fsInternetDownloader(), and GetFoundMirrorCount().
1.5.6