当前位置:首页 » 文件传输 » 多线程从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中。以表示该进程拥有这些资源或正在使用它们。

另外,进程也是抢占处理机的调度单位,它拥有一个完整的虚拟地址空间。当进程发生调度时,不同的进程拥有不同的虚拟地址空间,而同一进程内的不同线程共享同一地址空间。

共享进程资源:

在同一进程中的各个线程,都可以共享该进程所拥有的资源,这首先表现在:所有线程都具有相同的地址空间(进程的地址空间),这意味着,线程可以访问该地址空间的每一个虚地址。

此外,还可以访问进程所拥有的已打开文件、定时器、信号量机构等。由于同一个进程内的线程共享内存和文件,所以线程之间互相通信不必调用内核。