文件名称:Socket_programing
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:249.47kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
熟悉Http协议的请求和响应格式,编写一个简单的Http服务器。
基本要求:
1 正确解析Http请求,实现简单的GET请求回应。
2 模拟一个对象(如:文件index.html)的GET回应(如:回应一个字符串),对于其他的对象,则根据Http响应格式回应对象不存在信息。
3 通过浏览器可检测自己的程序。如:输入http://the.ip.of.your.pc:serverPort/index.html,查看其响应结果。
4 对http请求的处理必须采用多进程实现,即主进程负责等待请求连接,每当收到一个请求后,产生一个子进程对该请求做单独处理,主进程继续等待新请求,子进程在处理完其请求后结束自己。详细要求参考课本要求。(多进程编程参考函数fork())
-Http familiar with the agreement of the request and response format, write a simple Http server.
Basic requirements:
Http parsing a proper request, to achieve a simple GET request to respond.
2 analog an object (such as: file index.html) of the GET response (such as: in response to a string), for other objects, then according to Http response format, the information to respond to the object does not exist.
3 can be detected through the browser s own procedures. Such as: Enter http://the.ip.of.your.pc:serverPort/index.html, see the results of its response.
4 pairs of http request processing must be used to achieve multi-process, that is the main process is responsible for waiting for a request to connect, when receiving a request to generate a child process handling that request to do alone, the main process continues to wait for new request, the child process handling to complete its request to end their own. Requirements detailed requirements refer to their textbooks. (Multi
基本要求:
1 正确解析Http请求,实现简单的GET请求回应。
2 模拟一个对象(如:文件index.html)的GET回应(如:回应一个字符串),对于其他的对象,则根据Http响应格式回应对象不存在信息。
3 通过浏览器可检测自己的程序。如:输入http://the.ip.of.your.pc:serverPort/index.html,查看其响应结果。
4 对http请求的处理必须采用多进程实现,即主进程负责等待请求连接,每当收到一个请求后,产生一个子进程对该请求做单独处理,主进程继续等待新请求,子进程在处理完其请求后结束自己。详细要求参考课本要求。(多进程编程参考函数fork())
-Http familiar with the agreement of the request and response format, write a simple Http server.
Basic requirements:
Http parsing a proper request, to achieve a simple GET request to respond.
2 analog an object (such as: file index.html) of the GET response (such as: in response to a string), for other objects, then according to Http response format, the information to respond to the object does not exist.
3 can be detected through the browser s own procedures. Such as: Enter http://the.ip.of.your.pc:serverPort/index.html, see the results of its response.
4 pairs of http request processing must be used to achieve multi-process, that is the main process is responsible for waiting for a request to connect, when receiving a request to generate a child process handling that request to do alone, the main process continues to wait for new request, the child process handling to complete its request to end their own. Requirements detailed requirements refer to their textbooks. (Multi
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Socket_programing/http_server.txt
Socket_programing/HTTP服务器.doc
Socket_programing/http服务器.exe
Socket_programing/udp客户.exe
Socket_programing/udp客户.txt
Socket_programing/UDP客户机与服务器的实现.doc
Socket_programing/udp服务.exe
Socket_programing/udp服务.txt
Socket_programing
Socket_programing/HTTP服务器.doc
Socket_programing/http服务器.exe
Socket_programing/udp客户.exe
Socket_programing/udp客户.txt
Socket_programing/UDP客户机与服务器的实现.doc
Socket_programing/udp服务.exe
Socket_programing/udp服务.txt
Socket_programing
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.