会员注册 | 登录 | 微信快捷登录 QQ登录 微博登录 | 帮助中心 人人文库renrendoc.com美如初恋!
站内搜索 百度文库

热门搜索: 直缝焊接机 矿井提升机 循环球式转向器图纸 机器人手爪发展史 管道机器人dwg 动平衡试验台设计

   首页 人人文库网 > 资源分类 > DOC文档下载

外文翻译--Linux_server翻译嵌入式系统的网络服务器 英文版.doc

  • 资源星级:
  • 资源大小:756.00KB   全文页数:8页
  • 资源格式: DOC        下载权限:注册会员
您还没有登陆,请先登录。登陆后即可下载此文档。
  合作网站登录: 微信快捷登录 支付宝快捷登录   QQ登录   微博登录
友情提示
2:本站资源不支持迅雷下载,请使用浏览器直接下载(不支持QQ浏览器)
3:本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰   

外文翻译--Linux_server翻译嵌入式系统的网络服务器 英文版.doc

北京工业大学毕业设计(译文)7TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinuxWebServerforEmbeddedSystemsAftertheeverybodyintheInternetwavenowobviouslyfollowstheeverythingintheInternetwave.Themostcoffee,vendingandwashingmachinesarestillnotavailableabouttheworldwidenet.HowevertheembeddedInternetintegrationforremotemaintenanceanddiagnosticaswellasthesocalledM2Mcommunicationisgrowingwithaconsiderablespeedrate.JusttheremotemaintenanceanddiagnosticofcomponentsandsystemsbyWebbrowsersviatheInternet,oralocalIntranethasaveryhighweightformanydevelopmentprojects.InnumerousdevelopmentdepartmentspeopleworkoncompletelyWebbasedconfigurationsandservicesforembeddedsystems.TheremainingdaysoftheclassicuserinterfacemadebyasmallLCdisplaywithfrontpanelandafewfunctionkeysareover.ThroughfutureevolutionsinthefieldofthemobileInternet,BluetoothbasedPANsPersonalAreaNetworksandtherapidlygrowingM2McommunicationM2MMachinetoMachineafurtherinnovatingadvanceistobeexpected.ThecentralfunctionunittogetaccessonanembeddedsystemviaWebbrowseristheWebserver.SuchWebserversbringthedesiredHTMLpagesHTMLHyperTextMarkupLanguageandpicturesovertheworldwideInternetoralocalnetworktotheWebbrowser.ThishappensHTTPbasedHyperTextTransferProtocol.ATCP/IPprotocolstack–thatmeansitisbasedonsophisticatedandestablishedstandards–managestheentirecommunication.WebserverHTTPserverandbrowserHTTPclientbuildTCP/IPapplications.HTTPachievedaphenomenaldistributioninthelastyears.MeanwhilemillionsofuseraroundtheworldsurfHTTPbasedintheWorldWideWeb.Todayalmosteverypersonalcomputeroffersthenecessaryassistanceforthisprotocol.Thisstatusisvalidmoreandmoreforembeddedsystemsalso.TheHTTPspreadsupwithafastratetoo.北京工业大学毕业设计(译文)8TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinux1.TCP/IPbasedHTTPasCommunicationPlatformHTTPisasimpleprotocolthatisbasedonaTCP/IPprotocolstackpicture1.A.HTTPusesTCPTransmissionControlProtocol.TCPisarelativecomplexandhighqualityprotocoltotransferdatabythesubordinateIPprotocol.TCPitselfalwaysguaranteesasafeguardedconnectionbetweentwocommunicationpartnersbasedonanextensivethreewayhandshakeprocedure.AsaresultthedatatransferviaHTTPisalwaysprotected.DuetotheextensiveTCPprotocolmechanismsHTTPoffersonlyalowgradeperformance.Figure1TCP/IPstackandHTTPprogrammingmodelHTTPisbasedonasimpleclient/serverconcept.HTTPserverandclientcommunicateviaaTCPconnection.AsdefaultTCPportvaluetheportnumber80willbeused.Theserverworkscompletelypassive.Hewaitsforarequestorderofaclient.ThisrequestnormallyreferstothetransmitionofspecificHTMLdocuments.ThisHTMLdocumentspossiblyhavetobegenerateddynamicallybyCGI.Asresultoftherequests,theserverwillanswerwitharesponsethatusuallycontainsthedesiredHTMLdocumentsamongotherspicture1.B.GET/test.htmHTTP/1.1Acceptimage/gif,image/jpeg,/UsersellingagentMozilla/4.0Host192.168.0.1Listing1.AHTTPGETrequestHTTP/1.1200OKDateMon,06Dec1999205512GMTServerApache/1.3.6LinuxContentlength82Contenttypetext/htmlTestSeite北京工业大学毕业设计(译文)9TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinuxListing1.BHTTPresponseasresultoftheGETrequestfromlisting1.AHTTPrequestsnormallyconsistofseveraltextlines,whicharetransmittedtotheserverbyTCP.Thelisting1.Ashowsanexample.ThefirstlinecharacterizestherequesttypeGET,therequestedobject/test1.htmandtheusedHTTPversionHTTP/1.1.Inthesecondrequestlinetheclienttellstheserver,whichkindoffilesitisabletoevaluate.Thethirdlineincludesinformationabouttheclientsoftware.Thefourthandlastlineoftherequestfromlisting1.AisusedtoinformtheserverabouttheIPaddressoftheclient.Inaccordingtothetypeofrequestandtheusedclientsoftwaretherecouldfollowsomefurtherlines.Asanendoftherequestablanklineisexpected.TheHTTPresponsesasrequestanswermostlyconsistoftwoparts.Atfirstthereisaheaderofindividuallinesoftext.Thenfollowsacontentobjectoptional.Thiscontentobjectmaybeconsistsofsometextlines–incaseofaHTMLfile–orabinaryfilewhenaGIForJPEGimageshouldbetransferred.Thefirstlineoftheheaderisespeciallyimportant.Itworksasstatusorerrormessage.Ifanerroroccurs,onlytheheaderorapartofitwillbetransmittedasanswer.2.FunctionalprincipleofaWebServerSimplifiedaWebservercanbeimaginedlikeaspecialkindofafileserver.Picture2.Ashowsanoverview.TheWebserverreceivesaHTTPGETrequestfromtheWebbrowser.Bythisrequest,aspecificfileisrequiredasanswerseestep1intopicture2.A.Afterthat,theWebservertriestogetaccessonthefilesystemoftherequestedcomputer.Thenitattemptstofindthedesiredfilestep2.AfterthesuccessfulsearchtheWebserverreadtheentirefilestep3andtransmititasananswerHTTPresponsecomprisingofheaderandcontentobjecttotheWebbrowserstep4.IftheWebservercannotfindtheappropriatefileinthefilesystem,anerrormessageHTTPresponsewhichonlycontainstheheaderissimplybesendasresponsetotheclient.Figure2FunctionalprinciplefromWebserverandbrowser北京工业大学毕业设计(译文)10TheDIL/NetPCsDNP/1110–UsingtheEmbeddedLinuxThewebcontentisbuildbyindividualfiles.ThebaseisbuildbystaticfileswithHTMLpages.WithinsuchHTMLfilestherearereferencestofurtherfilesembedded–thesefilesaretypicallypicturesinGIForJPEGformat.However,alsoreferencestootherobjects,forexampleJavaApplets,arepossible.AfteraWebbrowserhasreceivedaHTMLfileofaWebserver,thisfilewillbeevaluatedandthensearchedforexternalreferences.Nowthesteps1to4frompicture2.AwillrunagainforeveryexternalreferenceinordertorequesttherespectivefilefromthecorrespondingWebserver.Pleasenote,thatsuchareferenceconsistsofthenameorIPaddressofaWebservere.g.dilnetpc.com,aswellasthenameofthedesiredfilee.g.picture1.gif.SovirtuallyeveryreferencecanrefertoanotherWebserver.Inotherwords,aHTMLfilecouldbelocatedontheserverssvembedded.debuttherequiredpicturewhichisexternalreferencedbythisHTMLfileislocatedontheWebserverdilnetpc.com.FinallythisworldwidenetworkingofseparateobjectsisthecauseforthenameWorldWideWebWWW.Allfiles,whicharerequiredbyaWebserver,arerequestedfromabrowserliketheprocedureshownonpicture2.A.Normallythesefilesarestoredinthefilesystemoftheserver.TheWebmasterhastoupdatethesefilesfromtimetotime.AfurtherelementaryfunctionalityofaWebserveristheCommonGatewayInterfaceCGIwehavementionedbefore.Originallythistechnologyismadeonlyforsimpleforms,whichareembeddedintoHTMLpages.Thedata,resultingfromthepaddingofaform,willbetransmittedtoaWebserverviaHTTPGETorPOSTrequestseestep1intopicture2.B.InsuchaGETorPOSTrequestthenameoftheCGIprogram,whichisneededfortheevaluationofaform,isfundamentallyincluded.ThisprogramhastobeontheWebserver.Normallythedirectory/cgibinisusedasstoragelocation.AsresultoftheGETorPOSTrequesttheWebserverstartstheCGIprogramlocatedinthesubdirectory/cgibinanddeliversthereceiveddatainformofparametersstep2.TheoutputsofaCGIprogramareguidedtotheWebserverstep3.ThentheWebserversendsthemallasresponsestotheWebbrowserstep4.3.DynamicgeneratedHTMLPagesIncontradictiontoacompanyWebsiteserver,whichinformspeopleabouttheproductprogramandservicesbystaticpagesandpictures,anembeddedWebserverhastosupplydynamicallygeneratedcontents.TheembeddedWebserverwillgeneratethedynamicpagesinthemomentofthefirstaccessbyabrowser.HowelsecouldwechecktheactualtemperatureofasystemviaInternetStaticHTMLfilesarenotinterestingforanembeddedWebserver.ThemostinformationaboutthefirmwareversionandserviceinstructionsarestoredinHTMLformat.AllothertasksarenormallymadeviadynamicgeneratedHTML.TherearetwodifferenttechnologiestogenerateaspecificHTMLpageinthemomentoftherequestFirstthesocalledserversidescriptingandsecondtheCGIprogramming.Attheserversidescripting,scriptcodeisembeddedintoaHTMLpage.Ifrequired,thiscodewillbecarriedoutontheserverserversided.

注意事项

本文(外文翻译--Linux_server翻译嵌入式系统的网络服务器 英文版.doc)为本站会员(英文资料库)主动上传,人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知人人文库网([email protected]),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。

copyright@ 2015-2017 人人文库网网站版权所有
苏ICP备12009002号-5