请下载全套论文,包含论文和源代码等!简易署理服务器的规划
包含目录称号:
简易署理服务器的规划 - 2 文件数, 0 目录数.
..\简易署理服务器的规划.doc
..\简易署理服务器的规划.rar
06月10日
简易署理服务器的规划
摘 要
署理服务器是介于阅读器和Web服务器之间的一台服务器,它的功用是署理网络用户去取得网络信息。它的作业原理是,接纳客户机的数据衔接恳求,并将恳求传给Web服务器;再从Web服务器接纳回来的数据,最终把数据传给客户端显现。本论文叙述的是关于一个简略的署理服务器的完结,在完结中选用客户机/服务器结构模型开发应用程序,根据一般的拜访阅读速度慢、功率底、安全功用不强等原因,将以简略、合理、有用为准则;为了便利剖析和规划,体系规划中设置不同的状况量用于标识客户机、署理服务器及服务器间的联合状况。在确保体系根本功用的一起,运用多线程机制使得署理体系有更好的延续性。此署理体系具有简略,易用,网络化等长处,能够完结一般的HTTP拜访署理服务。
关键词:客户机/服务器结构;多线程;套接字;署理服务器
The Design of Simple Proxy Server
Abstract
The proxy server is a server which situates between the browser and a Web server. It's principle of work is, it receives the connection request from the client, and hands down the requested to the Web server, then receives data which is returned from the Web server., finally hands it down the data to the client. In the realization, it adopts Client/Server structural model to develop application. Because of browse speed slow, low efficient and not safe enough, it takes simple, reasonable and effective as the principle. In the system design, it sets different states to identify client, proxy server and the connective state between servers. When the system's basic function are guaranteed, it use the multithreading to enable the proxy server to have a better continuous feature. This proxy system has the merit such as simple, easy to use and so on, and it can complete the proxy of general HTTP visit.
Key words: Client / Server architecture;Multithreading;Socket;Proxy Server
目 录
论文总页数:20页
1 导言 1
1.1 课题布景 1
1.2 本课题研讨的含义 1
1.3 本课题的研讨办法 1
2 理论基础 2
2.1 署理服务器 2
2.2 现在的署理服务技能 3
2.3 SOCKET 面向衔接的编程模型 4
2.4 WINSOCK库 5
2.4.1 winsock的寻址办法 5
2.4.2 字节次序 6
2.5 体系根本套接字调用 6
2.5.1 创立和封闭套接字-socket()和closesocket() 6
2.5.2 指定本地地址-bind() 6
2.5.3 设置监听状况-listen() 6
2.5.4 树立套接字衔接-connect()和accept() 6
2.5.5 收发数据-send()和recv() 7
3 规划计划 7
3.1 根本函数规划 7
3.2 多线程流程 8
4 服务器的完结 8
4.1 环境创立 8
4.2 功用完结 9
4.2.1 数据变量界说 9
4.2.2 发动署理服务器 10
4.2.3 恳求处理进程 11
4.2.4 恳求呼应 13
4.2.5 封闭服务器 15
4.2.6 操控主函数 15
5 测验成果 15
结 论 17
参阅文献 18
致 谢 19
声 明 20
1 导言
1.1 课题布景
一般的因特网拜访是一种典型的客户机与服务器结构,而署理服务器将运转于客户机与服务器之间,它作为Internet/Intranet上常用的一种服务器,一般装备在Intranet衔接Internet的出口处,首要完结署理传输服务。能够这样以为,署理是双向的。即关于内部网上的用户来说,署理服务器可看作是一个外部网的署理;关于外部网络来说,署理服务器能够看作一个要
上一篇:
简略长途操控体系被控端的规划
下一篇:
立异人才培养及其才能进步的研讨与实践