文件名称:tcpIP4
- 所属分类:
- 通讯编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2016-11-24
- 文件大小:
- 1.39mb
- 下载次数:
- 0次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一个简单的web服务器,它仅能处理一个请求.
Web服务器:
(1)当一个客户(浏览器)连接时创建一个连接套接字;
(2)从连接套接字接收http请求。
(3)解释该请求以确定所请求的文件;
(4)从服务器的文件系统获得请求的文件。
(5)创建一个由请求的文件组成的http响应报文。报文前面有首部行。
(6)经TCP连接想请求的浏览器发送响应。如果浏览器请求的文件不在服务器,服务器返回“404 Not Found”差错报文。
Web客户端:采用浏览器实现。输入URL请求页面。-A simple web server, it can only handle a request.
Web server:
(1) create a connection socket when a client (browser) is connected
(2) receiving HTTP requests the connection socket.
(3) explain the request to determine the requested file
(4) the file system the server to obtain the requested file.
(5) to create a HTTP response message consisting of a request file. Header line in front of the message.
(6) the TCP connection to the request of the browser to send a response. If the file requested by the browser is not in the server, the server returns the 404 Found Not error message.
Web client: using the browser to achieve. Enter URL request page.
Web服务器:
(1)当一个客户(浏览器)连接时创建一个连接套接字;
(2)从连接套接字接收http请求。
(3)解释该请求以确定所请求的文件;
(4)从服务器的文件系统获得请求的文件。
(5)创建一个由请求的文件组成的http响应报文。报文前面有首部行。
(6)经TCP连接想请求的浏览器发送响应。如果浏览器请求的文件不在服务器,服务器返回“404 Not Found”差错报文。
Web客户端:采用浏览器实现。输入URL请求页面。-A simple web server, it can only handle a request.
Web server:
(1) create a connection socket when a client (browser) is connected
(2) receiving HTTP requests the connection socket.
(3) explain the request to determine the requested file
(4) the file system the server to obtain the requested file.
(5) to create a HTTP response message consisting of a request file. Header line in front of the message.
(6) the TCP connection to the request of the browser to send a response. If the file requested by the browser is not in the server, the server returns the 404 Found Not error message.
Web client: using the browser to achieve. Enter URL request page.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
tcpIP4
......\Debug
......\.....\Server.exe
......\.....\Server.ilk
......\.....\Server.obj
......\.....\Server.pch
......\.....\Server.pdb
......\.....\vc60.idb
......\.....\vc60.pdb
......\Server.cpp
......\Server.dsp
......\Server.dsw
......\Server.ncb
......\Server.opt
......\Server.plg
......\StdAfx.h
......\index.html