當前位置:首頁 » 文件傳輸 » 多線程從ftp下載文件
擴展閱讀
webinf下怎麼引入js 2023-08-31 21:54:13
堡壘機怎麼打開web 2023-08-31 21:54:11

多線程從ftp下載文件

發布時間: 2023-01-15 07:54:07

① 為什麼FTP下載很慢

FTP下載速度慢的原因比較多,但一般來說,就以下幾點:
首當其沖的就是伺服器的所謂的質量問題,即伺服器的配置,配置好的空間自然就速度快,然後是所在的地理位置,帶寬的地域自然速度也快,在這之後還有對伺服器的維護程度,是否有病毒侵佔,有時病毒會慢慢拉垮資源,越來越慢,最後致使系統崩潰。
接著就是上傳文件所在地,即客戶端的電腦速度快慢,還是所在區域網的速度,這些自然是重要因素,伺服器速度再快,本地的速度慢,怎麼也不會快起來。
然後是由於某個文件卡住了,或是FTP佔用了伺服器好久的資源,有時也會特慢,解決這種情況的辦法就是將FTP關掉,重新打開一個,繼續上傳,但要記得是採用續傳,不能採用覆蓋,否則先前上傳的成果與功勞都沒了。
最後還有一種情況,盡管反復重啟FTP,但就是不行,速度還是很慢,在這種情況下,當然也有可能是伺服器出了問題或是被病毒侵佔了,或是內存在這個特定時候消耗得厲害,解決這種情況,可以將路由重啟一下,換成另外一個IP,然後再將FTP關掉重新打開。

② 用FTP怎麼下載

文件傳輸協議FTP是Internet中傳遞文件速度最快的一種協議,比你在網上下載(大多採用HTTP方式要快得多)。

FTP下載其實不用准備什麼額外的軟體,當然,若你能用多線程的下載工具將會幫助你大大的提高下載速度(就好象幾台機器一起下載),我目前最喜歡的多線程下載軟體是影音傳送帶,支持多種下載協議。

但FTP資源有時會需要用戶名和密碼才能讓你瀏覽和下載FTP的下載資源,若是免費的則說明FTP資源是匿名共享的。

③ C#多線程ftp下載的實現(java也可,關鍵是思路)

參考答案:讀書之法,在循序而漸進,熟讀而精思。——朱熹

④ 問達人:CuteFtp如何增加線程下載文件

你只要有FTP站點的密碼可用戶名就行了。
步驟如下:
在第一個對話框中鍵入你要為那個站點所命的名字(隨便即可)在下一步中對話框中鍵入一個你的FTP站點名字如:ftp://(ftp.aaa.com.cn(說明:有的站點不要寫FTP.)在下有步中鍵入你的用戶名和密碼。再下面的幾步就隨便了,不添也行。

⑤ C++程序中如何實現ftp多線程下載

本人不才,下面這個是從網路上轉來的.不知可有幫助.

這是codeproject的關於ftp的實現,你可以去down源代碼
Introction

StuffFTP is a free for life FTP client. This FTP client will allow you to connect to FTP servers and upload and download files.
Motivation

Why did I create and continue to support StuffFTP? First it is a learning experience, and since I just got laid off from my company, I decided to use some of the tools they have provided, its legal as I technically bought them and they do not have other programmers following in my footstep nor do they plan on hiring any, to create something for the community. I also used another FTP program that was freeware for a while and then became pay to use software with little to no notice. That irked me and a friend suggested I create my own FTP client. So I am.
Progress

This is currently a work in progress and I would be the first to say there is a lot of work to do. Since I am laid off, I have lots of time on my hands. And this is an excellent chance for me to learn some of the concepts of C++ that I wanted to, but never had the chance while I was working. I was hoping to get a job in San Jose, CA, but decided to hold off and live on saving for a while.
Guarantee

I will support this program as best as I can. I have already setup a website and forum for it, here. I use the forum because I have trouble responding to email especially when I get a whole bunch of SPAM everyday. There is no adware or spyware in the program, and I guarantee that it will be free for the life of the program.

Some people have already asked why I don't open source the project. The main reason is I do not know if I can. StuffFTP uses some proprietary third party libraries. I do not know if I can post the source code or header files to those libraries. So everyone will have to wait until I can get rid of those libraries or hear back from the companies concerning my question about releasing header and associated help files.
Tools

* MS Windows XP Professional
* MS Visual Studio .NET C++/MFC
* Clickteam Install Maker
* Clickteam Patch Maker
* Betaone.net forum members
* CXListCtrl by Hans Dietrich

3rd Party Libraries

The application uses Catalyst Socket Tools Library Edition and Professional UI GUI library. So far the support has been fair with Prof-UI and outstanding with Catalyst. The Catalyst tool is for the actual FTP connection and, as the name suggests, Prof-UI is being used for the GUI.
Updates

You can find the latest updates here and you can also find my latest ramblings, blogs, and support here. This is where you can find out all the latest versions and information.
How to contribute

Money! Just kidding you can contribute by downloading, using, and giving feedback on the program. That way I can determine which path to take with the application and which features to prioritize or not. Graphics is also where I need lots of help. I am left brained and can not draw a good stick figure to save my life. If you can help with graphics or anything else, please let me know. Also talk to me, I am bored. I have no job at the moment so I can use the company.
Features

* Able to upload/download from server/computer
* Connect to FTP sites using login
* Connect using other ports besides 21
* Delete, rename, and CHMOD a file

History

* 12/10/2003 - Version 0.11a
* 12/07/2003 - Version 0.10a

⑥ 如何設置多線程FTP下載

FlashfXP只能單線程下載,可以先用FlashfXP登錄FTP站點,選中你要下載的文件,右擊滑鼠,在出現的菜單上選擇:「復制URL(Ctrl+U)」,FlashfXP會提示:「是否復制用戶名及密碼?」,選擇「是」,然後打開迅雷,點「新建(Ctrl+N)」下載任務,在出現的界面上邊:「網址(URL)」裡面(Ctrl+V)填上剛剛粘貼的信息,這樣迅雷就可以從你的FTP站點多線程下載文件了,而且你可以同時下載不同的文件,也是多線程的。當然,萬一你的FTP站點是限制單線程下載的話,為了充分利用帶寬,就只好同時下載其他文件來提高效率。萬一你的FTP站點是限制每個IP只能單線程下載一份文件,這個辦法可能就無能為力了。希望能幫到你,呵呵~~

⑦ java如何實現基於http和ftp多線程下載工具...

訪問網路資源就要去了解你要訪問的網路資源所使用的協議。一般來說我們所使用的協議都是公開式的協議,比如http協議,它在數據的前面部分先設置一些信息來說明它所發送的數據的大小,文件類型等等。而多線程的實現原理就是先從http協議中獲取要下載的資源的資源大小,然後再分多個線程從不同的起點跟終點來分段下載資源。ftp資源的道理也是一樣。當然我並不是網路方面的專家,對網路我也不懂。以後只是我個人見解。
以下是給你找的一個java實現的http多線程下載。你看看吧
http://shazi.javaeye.com/blog/99132

⑧ 在Delphi中如何實現idftp多線程下載

多線程的東西網上有很多,不過有一點要注意,在線程里調用的 idftp控制項要用動態創建的,不要使用拖下來的控制項,不然會出問題。

⑨ delphi FTP 多線程下載 (能支持斷點更好)

看不懂

⑩ ftp多個線程的影響

ftp多個線程的影響就好比可以同時使用多個匿名用戶是一樣的,只受你ftp最大連接數的限制。

開放ftp站點的人可以為帳戶單獨設置下載線程,也可以設定一個總的下載線程根據實際情況分配。他也可以隨時進行變更。

所有與該進程有關的資源,都被記錄在進程式控制制塊PCB中。以表示該進程擁有這些資源或正在使用它們。

另外,進程也是搶占處理機的調度單位,它擁有一個完整的虛擬地址空間。當進程發生調度時,不同的進程擁有不同的虛擬地址空間,而同一進程內的不同線程共享同一地址空間。

共享進程資源:

在同一進程中的各個線程,都可以共享該進程所擁有的資源,這首先表現在:所有線程都具有相同的地址空間(進程的地址空間),這意味著,線程可以訪問該地址空間的每一個虛地址。

此外,還可以訪問進程所擁有的已打開文件、定時器、信號量機構等。由於同一個進程內的線程共享內存和文件,所以線程之間互相通信不必調用內核。