HTTP Downloader for updater Application Block 2 (G
2024-07-21 02:15:51
供稿:網友
 
microsoft updater application block v2.0 中內置的 downloader 是采用 bits 技術下載文件的。bits 是 background intelligent transfer service 縮寫。
bits 是 windows 中新增的一項非常實用的文件傳輸功能,它通過 http 異步地從遠程服務器上下載文件。 bits 可以專門利用空閑帶寬來處理多個用戶的多個下載任務。 盡管 bits 不僅僅限于自動更新應用程序使用,但它是 windows update 使用的基礎 api。 并且,由于它可用于任何應用程序,因此可用來完成創建自動更新應用程序的過程中所涉及到的大部分非常困難的工作。
有關如何利用 .net 和 bits api 編寫自動更新應用程序,可以參考《使用 .net 和后臺智能傳輸服務 api 來編寫自動更新應用程序》和 microsoft updater application block v2.0 的文檔。
對于編寫自動更新應用程序,bits 技術是不錯的選擇,但不是所有 windows 操作系統都支持它。
run-time requirements
bits v2.0 is included in microsoft® windows® xp sp2 and windows server 2003 sp1.
you can also download bits v2.0 for windows server 2003, windows xp sp1, windows xp, windows 2000 sp4, and windows 2000 sp3. to download bits v2.0, go to the microsoft download center and install kb842773.
因此,實現一個以 http 方式下載文件的 downloader 是十分有必要的,今天終于在 gotdotnet user sample 看到別人已經用 c# 實現了 httpdownloader。由于作者沒有提供 vb.net 版本,使用 vb.net 的朋友可以試一試 codetranslator 將代碼轉換成相應的 vb.net 版本。
本文來源于網頁設計愛好者web開發社區http://www.html.org.cn收集整理,歡迎訪問。