2012年(8)
分类: LINUX
2012-11-14 14:54:49
本节快速地介绍了用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]