哪位大哥有VB的多线程支持断点续传的下载代码.............急死人了,谢谢啦@

解决方案 »

  1.   

    http://www.vbip.com/protocols/ftp/vb-ftp-client-library/vbip-ftp-client-library-1.0.4.zip这是一个FTP的库,具有以下特性:Establish connection to the remote FTP host. 
    Authenticate the user. 
    Retrieve directories/files listings. 
    Navigate between remote directories. 
    Download a file from the FTP server onto the local system. 
    Upload a file to the FTP server from the local system. 
    Resume the broken data transfer operations in any direction. 
    Display data transfer progress information. 
    Rename files and directories located on the FTP server. 
    Delete files and directories on the FTP server. 
    Define the “waiting for server response” time out value. 
    Define size of the outgoing data buffer. 
    Get the FTP session status info at any time of the session. 
    Define method of establishing of the data connection (passive mode or not) 
    Define the data transfer mode (ASCII or Image) 
    参考:
    http://www.vbip.com/protocols/ftp/vb-ftp-client-library/default.asp
      

  2.   

    用winsock  数组嘛,一个winsock就是一个线程,原理也不难,多线程的文件传送我倒有源码,
    支持断点续传的没有,
      

  3.   

    关于多线程,请看这个帖子:http://community.csdn.net/Expert/topic/4295/4295010.xml?temp=.7259943
    关于断点续传:
    首先,断点续传就是望文件的最后面写入新的内容。
    其实他的原理很简单,你文件在下载的时候是怎么保存的呢?Put语句嘛!(Put语句用来写文件)如下:
        Put [#]filenumber, [recnumber], varname
        第二个参数是:Variant (Long)。记录号(Random 方式的文件)或字节数(Binary 方式的文件),指明在此处开始写入。【MSDN的解释】页就是位置。
        通过函数FileLen(strFilePath)取得文件的大小    dim lngLen as long:lngLen=FileLen(strFilePath)'
        put  #1,lngLen+1,数据
    即可完成续传。