嵌入式web服务器的设计与实现.doc
上传人:天马****23 上传时间:2024-09-12 格式:DOC 页数:60 大小:1.5MB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

嵌入式web服务器的设计与实现.doc

嵌入式web服务器的设计与实现.doc

预览

免费试读已结束,剩余 50 页请下载文档后查看

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

武汉大学毕业设计(论文)用纸PAGE\*MERGEFORMATvi嵌入式WEB服务器摘要Linux操作系统是一个开放源代码的免费操作系统,它不仅有安全、稳定、成本低的特点,而且很少发现有病毒传播。近年来,随着linux操作系统在我国的不断普及,越来越多的服务器、工作站和个人电脑开始使用linux软件。基于linux具有稳定、可靠、安全和强大的网络功能这些优点,本文选择在linux环境下实现一个Web服务器。本文研究了HTTP协议实现了数据的传输,阐述了采用linux套接字编程接口的方法实现HTTP协议的方案,详细分析了客户端和服务器之间的通信过程。本文在linux系统下实现一个Web服务器程序,在局域网内,将此服务器程序在一台计算机上运行,使网内其它计算机访问这台服务器时,实现客户端和服务器以HTTP协议进行请求和响应的功能。此外还编写了Web浏览器。Web服务器实现的全部代码采用linux下的C语言编程,可进一步提高系统运行速度,并且增强了系统的安全性和可靠性。Web浏览器代码是采用C++和Qt的编程,界面设计是用Qt实现的。关键词:嵌入式;linux操作系统;HTTP协议;Web服务器;Socket;Internet;QtEmbeddedWEBserverABSTRACTTheLinuxoperatesystemisafreeoperatesystemwhichopensasourcecode.Notonlyithascharacteristicssuchassafe,stability,andthelowcost,butalsoitseldomdissemiantestheVirus.Inrecentyears,alongwiththeLinuxoperatesysteminourcountrymakeswidelyavailablecontinuously,moreandmoreservers,workstationsandpersonalcomputerstartusingLinuxsoftware.AstheLinuxopertingsystemhasthefunctionofstablereliable,safeandformidablenetwork,torealizeaWebserverintheLinuxenvironmentisthebestchoice.ThispaperintroducesdesignandimplementofWebserverinLinuxoperatingsystem.TheproblemofhowtorealizedatatransmissionbyHTTPprotocolwhichbasedonLinuxisvaluabletoresearch.ThispaperexpoundsrealizingschemeforHTTPprotocol,andgivesoutprotocolcommunicationmodule,wihthemethodofLinuxsocketprogrammingintefface,andanalyzethecommunicationprocessbetweenclientandserver.ThispaperrealizesaWebserverprocedureinLinuxoperatingsysytem.Inthelocalareanetwork,ifthisserverprocedurerunsonacomputer,whichcanrealizesthefunctionthattheclientrequestsandtheserverrespondsbyHTTPagreement,whenothercomputersinthenetvisitit.ThecompletecodeoftheWebserver’srealizationusestheClanguageprogramminginLinuxoperatingsystem,whichmayfurtherenhancetherunningrate,andstrengthenedthesecurityandreliabilityofthesystem.ThecodeofWebbrowser’srealizationusesTheC++languageandQt,Keywords:Embedded;Linuxoperatingsystem;HTTPprotocol;Webserver;Socket;目录TOC\o"1-3"\h\z\uHYPERLINK\l"_Toc390260224"摘要PAGEREF_T