登录
首页 » Windows Socket编程 » 多用多

多用多

于 2022-01-26 发布 文件大小:290.39 kB
0 192
下载积分: 2 下载次数: 2

代码说明:

VC编写的多线程下载工具,支持HTTP/FTP、多线程、断点续传,图形显示下载进度,MFC界面。-VC prepared by multi-threaded downloading tool to support HTTP/FTP, multi-threaded, HTTP, graphic display download progress, MFC interface.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 用VC socket 实现聊天室的客户端
    用VC socket 实现聊天室的客户端-VC socket used to achieve Chat client
    2023-04-02 07:05:03下载
    积分:1
  •  各个线任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线一开始的任务是从文件的0位置开始下载一直到72908位置处。线1每次下载...
     各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载一块数据后就要调整任务,如第一次下载了20800字节的数据,那么线程1的任务将改为:20800-72908。如此下去,直到任务为72908-72908时表示线程1完成了当前的下载任务。此时,线程1就分析各个线程的任务,找出任务最为繁忙的一个线程:如线程3:14816-218724。那么线程1就自动去调整任务,拿50%的任务来再次下载。周而复始直到各个线程都完成任务。不过这里有一点需要注意:为了避免重复下载部分数据,在调整任务的时候,起始的文件便移量必须加上接受缓冲器的字节数,因为如前面所举的列子来看。线程1和线程3在平衡负载的时候,线程正在下载数据,如果所剩的数据比接受缓冲器的大小还小,线程1和线程3的部分下载数据将会重复。   在调整任务和分析任务的时候,会发现一个问题。就是读取文件数据太过频繁。于是我用了一个数据结构。在下载文件的过程中始终打开配置文件,这样速度提高了很多。在文件下载完毕后关闭文件。-various threads assignment is achieved. At the beginning of the download, the paper divided into a number of pieces of the download. As a thread of a task is to start from the position paper of 0 to start the download has 72,908 locations Department. Thread a download each one will have to adjust the data tasks, such as the first downloaded 20,800 gigabytes of data, then threaded a task will be re :20800- 72908. This situation continues until the mandate of 72908-72908 said threaded a completion of the cu
    2022-03-20 03:50:55下载
    积分:1
  • 网络 实例 对于新接触网络成的 朋友应该是一个不错的例子。有扩展性!...
    网络编程 实例 对于新接触网络编成的 朋友应该是一个不错的例子。有扩展性!-network programming examples for the new network into contact with friends is a good example. Scalability is!
    2022-07-14 16:17:21下载
    积分:1
  • 简单的网上邻居功能。获取局域网网络基本资源
    简单的网上邻居功能。获取局域网网络基本资源-Simple Network Neighborhood feature. LAN network access to basic resources
    2022-02-04 21:42:25下载
    积分:1
  • Novell网络发送数据的实现
    Novell网络发送数据的实现 -The implemention of sending data in Novell network
    2022-07-15 08:36:38下载
    积分:1
  • 使用DirectPlay实现类似CS游戏服务器通讯. 主要完成数据传输模块...
    使用DirectPlay实现类似CS游戏服务器通讯. 主要完成数据传输模块-Using DirectPlay to achieve a similar CS game server communications. The main data transfer module completed
    2022-09-22 06:55:02下载
    积分:1
  • VB环境开发的 修改IP网关的一款小工具
    VB环境开发的 修改IP网关的一款小工具 -IP Gateway to amend a small instrument
    2023-08-27 00:45:04下载
    积分:1
  • 异步socket
    异步socket类- Asynchronous socket kind
    2022-10-08 19:25:03下载
    积分:1
  • ESP协议的实现,初级阶段
    ESP协议的实现,初级阶段-ESP agreement achieved, the initial stage
    2022-06-17 12:54:07下载
    积分:1
  • simple peer
    简单的p2p应用 可以实现远程消息传输 并且以后的任务可以实现p2p文件传输-simple peer-to-peer applications can be remote messaging and the future task can achieve peer-to-peer file transfer
    2023-01-18 20:55:03下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载