基于SOCKET的多线程下载工具的开发  被引量:6

Development of multi-thread downlodeing tool based on socket

在线阅读下载全文

作  者:周学威[1] 闫鑫[1] 赵榉云[1] 杨薇[1] 

机构地区:[1]中北大学仪器科学与动态测试教育部重点实验室,山西太原030051

出  处:《电子测试》2011年第8期104-106,共3页Electronic Test

摘  要:在Windows编程中,为了提高代码的时、空效率,广泛采取多线程技术。本文以多线程技术的应用为研究背景,实现了多线程的一个应用:多线程文件下载。该下载工具以VC++6.0为开发平台,利用Windows套接字函数进行网络编程,实现了基于HTTP协议的文件下载过程,并通过创建和编写线程函数实现了文件的多线程下载工具的开发。利用该下载工具可以对网上的文档、图片、歌曲等各种文件实现多线程下载。经测试表明,该下载工具使文件的下载速率得到了有效提高。In order to improve code's efficiency both in time and space,Multi-thread technology widely used on Windows programs.This thesis's background was the apply of the multithreading technology,realize an application of multithreading technology:The Multi-Thread download file.This tool used VC++6.0 as the development space and windows socket function to finish the process,realizing the file download based on Hyper Text Transfer Protocal,And by creating and writing thread function realize the file multi-thread downloading tools development.To avail these multithreading download instrument could download the different kinds of file by multithreading in net,such as the documents、pictures、songs and so on.The test shows that the download tools make file download speed effectively improved.

关 键 词:多线程 HTTP协议 Windows套接字函数 

分 类 号:TP393.093[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象