Chinaunix首页 | 论坛 | 博客
  • 博客访问: 19255
  • 博文数量: 8
  • 博客积分: 190
  • 博客等级: 入伍新兵
  • 技术积分: 90
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-14 12:40
文章分类
文章存档

2012年(8)

我的朋友

分类: LINUX

2012-11-14 14:54:49

4. Ending

本节快速地介绍了用EasyNetwork框架快速地搭建一个下载服务器和下载客户端...感觉还不错吧. 贴几行log展示一下下载的过程吧,各个分片由不同的线程下载:

2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=4, fd=29, file=test.flv, index=4] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=4, fd=29, file=test.flv, index=9] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=0, fd=25, file=test.flv, index=0] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=3, fd=28, file=test.flv, index=3] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=1, fd=26, file=test.flv, index=1] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=2, fd=27, file=test.flv, index=2] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=4, fd=29, file=test.flv, index=14] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=0, fd=25, file=test.flv, index=5] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=0, fd=25, file=test.flv, index=10] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=3, fd=28, file=test.flv, index=8] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=4, fd=29, file=test.flv, index=19] 2012-09-18-14:13:00 INFO [DownClient/DownloadManager.cpp:on_recv_protocol(68)] ... finish download[ID=1, fd=26, file=test.flv, index=6]

阅读(368) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~