






















{******************************************************************************
文件名称: uWnDownLoadHelper.pas
文件功能: 断点续传下载线程单元
作者 : enli
--------------------------------------------------------------------------------}
unit uWnDownLoadHelper;interfaceuses
IdHTTP, IdAuthentication, IdHeaderList, IniFiles, md5,
SysUtils, IdAuthenticationSSPI, IdAuthenticationDigest, Classes, IdException,
IdSocks, IdIOHandlerSocket, DateUtils, IdComponent, Forms,ucchttpClient;const
S_TMP_POSTFIX = '.tmp';
S_INI_POSTFIX = '.sni';type
TWnDownloadProgress = procedure(APosition,ACount: Int64) of object;// 代理设置结构
TWnProxySetting = packed record
FIsProxyEnabled: Boolean;
FSocksVersion: TSocksVersion;
FProxyHost: string;
FProxyPort: Word;
FAuthUserName: string;
FAuthPassword: string;
FAuthDomain:string;
end;
PWnProxySetting = ^TWnProxySetting;
TWnDownLoadThread
= class(TThread) FHttp.ParseURI(FTarget, LProto, LHost, LPath, LDoc, LPort, LBookmark);
FSaveFile :
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。