论文首页哲学论文经济论文法学论文教育论文文学论文历史论文理学论文工学论文医学论文管理论文艺术论文 |
基于BT协议的客户端下载程序的设计与实现
摘要
计算机网络通信的模式越来越丰富,它经历了从开始时简单的同构互连,到服务器/客户端格局的以Web服务器为中心控制的异构中心化通信模式,最终回归到现在正蓬勃兴起的P2P通信模式。虽然P2P通信模式在技术上还有诸多尚待解决的难题,但却是整个计算机网络通信模式的发展趋势。P2P技术底层的实现依然是传统的通信基础,只是将通信主机的识别、传统服务器端客户端统1起来,构建1个稳定而有效的标识系统,借助这个标识系统实现非中心化的对等的通信。
本次毕业设计以BitTorrent文件传输协议为例经过细致地剖析展现P2P技术的诸多优越性。通过与同学合作,全面实现了1个BT客户端下载程序。本阐述了BitTorrent协议底层处理以外的程序设计和实现。以合作者实现的封装成动态链接库形式的BitTorrent协议库为基础,在Visual C++ 6.0开发环境下完成1个支持多任务同时下载的、支持下载任务持久性的、支持用户在任务运行时也可以配置下载任务常规参数的BT客户端下载程序。
本文组织如下:第1章介绍开发环境和主要的协议;第2章概述了业界P2P技术的应用背景;第3章讨论了由传统服务器/客户端通信模式到P2P通信模式的可行性,并给出可实施的方案;第4章则是BT客户端下载程序需求分析;第5章讲述了程序的各个模块组成和模块功能;第6章给出了细致的实施方案和核心技术说明。
关键词:P2P;BitTorrent协议;多任务;持久性;运行时配置
Abstract
The communicating models in networks are more and more abundant.The typical communicating model for many applications experienced from started when simple connection base a uniform protocol , to client/server-centered model that the server computer uses different protocols, finally returned P2P model that develops quickly today. P2P technology is a primary direction of communication for computer networks in the future, though there exists many technological problems waiting us to resolve. The base of implementation in the P2P technology is still use the foundation of traditional communications, and it just combines the identification of the host and the traditional server and client to construct a stable and effective marked system, it achieves the non-centered equivalent communications by means of this marked system. (转载自http://zw.NSEaC.com科教作文网)
I will tell you what are the advantages of P2P technology by the detailed anatomy of BitTorrent Protocol in this design. Through cooperating with my classmate, I developed a sample BT client program. This paper expatiates all designs and implementation about this program except BitTorrent protocol. Based on the BitTorrent protocol dynamical link library which has been finished by my cooperator, and in development environment Visual C++ 6.0 I created a BT client program which supports multi-task downloading, persistence of downloading tasks and configuring conventional parameters during the task executing.
This paper has been organized into six chapters. The first chapter introduces the development environment and main Protocols such as Visual C++ 6.0, Winsock, etc. Chapter Two summarizes application background of P2P technology in IT industry. Chapter Three discusses the possibility from traditional C/S model to P2P model and give a viable scheme. Chapter Four is the actualized requirements of BT client downloading program. Chapter Five expounds the framework of BT client program and describes function of each module. The last chapter shows detailed realization scheme and the explanations of core technology.
KEYWORDS: P2P; BITTORRENT PROTOCOL; MULTI-TASK; PERSISTENCE; RUNTIME CONFIGURATION
注释:不含源代码