linux下http服務(wù)器設(shè)計(jì).doc
linux下http服務(wù)器設(shè)計(jì),linux下http服務(wù)器設(shè)計(jì)目錄摘要vabstractvi前言vii第一章 緒 論11.1課題背景11.2 課題研究的目的和意義1第二章http服務(wù)器的相關(guān)理論基礎(chǔ)32.1 linux系統(tǒng)簡(jiǎn)介32.2 tcp/ip協(xié)議分析42.2.1 tcp/ip協(xié)議概述42.2.2 網(wǎng)絡(luò)層協(xié)議(ip協(xié)議)52.2.3 傳輸層協(xié)議(...
![](http://img.queshao.com/images/pcgzh.gif)
![](http://preview.queshao.com/tobuy/207473.gif)
內(nèi)容介紹
此文檔由會(huì)員 一任相思 發(fā)布Linux下HTTP服務(wù)器設(shè)計(jì)
目錄
摘要 v
Abstract vi
前言 vii
第一章 緒 論 1
1.1課題背景 1
1.2 課題研究的目的和意義 1
第二章HTTP服務(wù)器的相關(guān)理論基礎(chǔ) 3
2.1 Linux系統(tǒng)簡(jiǎn)介 3
2.2 TCP/IP協(xié)議分析 4
2.2.1 TCP/IP協(xié)議概述 4
2.2.2 網(wǎng)絡(luò)層協(xié)議(IP協(xié)議) 5
2.2.3 傳輸層協(xié)議(TCP和UDP) 7
2.3 Linux下網(wǎng)絡(luò)編程介紹 9
2.3.1 Socket簡(jiǎn)介 10
2.3.2 Socket創(chuàng)建 10
2.3.3 Socket配置 11
2.3.4 建立連接 13
2.3.5 數(shù)據(jù)傳輸 14
2.3.6 結(jié)束傳輸 15
2.3.7 Socket編程的基本步驟 16
2.3.8 I/O復(fù)用介紹 16
2.3.9 Linux下的I/O復(fù)用支持 17
2.3.10 Linux下EPOLL的使用 19
2.4 HTTP協(xié)議分析 22
2.4.1 HTTP協(xié)議概述 22
2.4.2 HTTP工作原理 23
2.4.3 HTTP請(qǐng)求報(bào)文分析 25
2.4.3 HTTP響應(yīng)報(bào)文分析 26
2.4.4 HTTP/1.0主要特征 27
2.4.5 HTTP/1.1簡(jiǎn)介 28
2.5 本章小結(jié) 29
第三章 HTTP服務(wù)器設(shè)計(jì) 30
3.1需求分析 30
3.2 HTTP服務(wù)器模型 30
3.3 HTTP服務(wù)器實(shí)現(xiàn)目標(biāo) 31
3.4 HTTP服務(wù)器設(shè)計(jì)思路 31
3.5 HTTP服務(wù)器功能模塊圖 32
3.6 HTTP服務(wù)器工作流程 32
3.7 HTTP服務(wù)器核心設(shè)計(jì)思想 35
3.8 本章小結(jié) 35
第四章 HTTP服務(wù)器實(shí)現(xiàn) 36
4.1 網(wǎng)絡(luò)連接模塊 36
4.1.1 數(shù)據(jù)結(jié)構(gòu)與接口設(shè)計(jì) 36
4.1.2 epoll接口實(shí)現(xiàn) 37
4.2 HTTP協(xié)議處理模塊 39
4.2.1 數(shù)據(jù)結(jié)構(gòu)與接口設(shè)計(jì) 39
4.3 HTTP服務(wù)提供模塊 42
4.3.1 數(shù)據(jù)結(jié)構(gòu)與接口設(shè)計(jì) 42
4.4 HTTP服務(wù)主程序 44
4.5 HTTP服務(wù)器運(yùn)行與測(cè)試 45
4.5.1 HTTP服務(wù)器運(yùn)行 45
4.5.2 HTTP服務(wù)器測(cè)試 46
4.6 本章小結(jié) 49
第五章 結(jié)論 50
第六章 總結(jié)與體會(huì) 51
謝辭 52
參考文獻(xiàn) 53
附錄 55
附錄1 軟件使用說明 55
附錄2 英文原文 57
附錄3 英文翻譯 58
摘要
Linux操作系統(tǒng)是一個(gè)開放源代碼的免費(fèi)操作系統(tǒng)。它不僅有安全、穩(wěn)定、成本低的特點(diǎn),而且很少發(fā)現(xiàn)有病毒傳播。HTTP服務(wù)器是web服務(wù)器的一種,它是基于超文本傳輸協(xié)議HTTP的服務(wù)器?;贚inux具有穩(wěn)定、可靠、安全和強(qiáng)大的網(wǎng)絡(luò)功能這些優(yōu)點(diǎn),使得其主要應(yīng)用于服務(wù)器領(lǐng)域。所以本文選擇在Linux環(huán)境下實(shí)現(xiàn)一個(gè)HTTP服務(wù)器。
本文研究了Linux下HTTP服務(wù)器的設(shè)計(jì)與實(shí)現(xiàn)。在Linux系統(tǒng)中采用HTTP協(xié)議和瀏覽器完成數(shù)據(jù)的傳輸。闡述了Linux套接字編程的方法、EPOLL等I/O復(fù)用編程模型。詳細(xì)分析了HTTP協(xié)議內(nèi)容以及客戶端與服務(wù)器之間的通信過程。本文實(shí)現(xiàn)了客戶端瀏覽器和服務(wù)器端以HTTP協(xié)議進(jìn)行請(qǐng)求和響應(yīng)的功能。同時(shí)對(duì)服務(wù)器進(jìn)行了一個(gè)簡(jiǎn)單的壓力測(cè)試。所有程序代碼均為L(zhǎng)inux下的C語言編程。
關(guān)鍵字: Linux、HTTP服務(wù)器、HTTP協(xié)議、EPOLL
Abstract
The Linux operate system is a free operate system which opens a source code.Not only it has characteristics such as safe,stability,and the low cost,but also it seldom disseminates the Virus.HTTP server is one of the Web servers and it bases on HTTP protocol.As the Linux operating system has the function of stable,reliable,safe and powerful network, it mainly used in servers.To realize a HTTP server in the Linux environment is the best choice.
This paper introduces design and implement of HTTP server in Linux operating system.In the Linux system and browser used HTTP protocol for data transmission. This paper expounds the method of Linux socket programming and EPOLL I/O multiplexing programming model.Detailed analysis the communication process between client and server and HTTP protocol.This paper realizes the function that the client browser requests and the server responds by HTTP agreement.Make a simple pressure test on the server.All program code use the C language programming in Linux operating system.
Keyword: Linux, HTTP Server, HTTP protocol, EPOLL
TA們正在看...
- 電子設(shè)計(jì)大賽報(bào)告模板.doc
- 電子設(shè)計(jì)大賽論文報(bào)告模板.doc
- 電子設(shè)計(jì)競(jìng)賽報(bào)告——模板免費(fèi)資料.doc
- 電子郵箱保密管理自查報(bào)告.doc
- 電梯安裝與維護(hù)實(shí)訓(xùn)總結(jié)報(bào)告.doc
- 電氣自動(dòng)化設(shè)備安裝與維修專業(yè)高人才需求報(bào)告.doc
- 電氣防火檢測(cè)報(bào)告模板.doc
- 電磁炮及其相關(guān)材料技術(shù)--實(shí)驗(yàn)報(bào)告.doc
- 電能質(zhì)量在線監(jiān)測(cè)裝置試驗(yàn)報(bào)告.doc
- 電視臺(tái)暑期社會(huì)實(shí)踐報(bào)告.doc