-
熟悉Http协议的请求和响应格式,编写一个简单的Http服务器。
基本要求:
1 正确解析Http请求,实现简单的GET请求回应。
2 模拟...
熟悉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
- 2023-04-01 20:15:03下载
- 积分:1
-
Blog part of the solution code, sub
解决部分博客代码,次代码适用与各种博客,基本的开发流程也是如此-Blog part of the solution code, sub-code the application with a variety of blog, the development of the basic flow is also true
- 2022-03-15 15:51:59下载
- 积分:1
-
用winsock进行有连接,无连接的通信
用winsock进行有连接,无连接的通信-Carried out with winsock connection, connectionless communications
- 2022-07-09 18:28:01下载
- 积分:1
-
采用HTTPGET方法进行文件下载,可以任意添加下载项目
采用HTTPGET方法进行文件下载,可以任意添加下载项目 -HTTPGET methods used to download files, you can download any item to add
- 2023-06-06 13:50:03下载
- 积分:1
-
a simple browser, can open any website, practical
一个简单的浏览器,可以打开任意的网址,很实用-a simple browser, can open any website, practical
- 2022-04-14 16:43:24下载
- 积分:1
-
网络课程设计资料:就是一个客户端,一个服务端,以达到聊天的目的...
网络课程设计资料:就是一个客户端,一个服务端,以达到聊天的目的-network curriculum design information : is a client, a server-side, to achieve the purpose of chatting! !
- 2022-01-26 04:48:04下载
- 积分:1
-
- 2023-07-04 23:55:03下载
- 积分:1
-
这一个是silverlight和js控件cookie的例子,请各位看看如何吧
这一个是silverlight和js控件cookie的例子,请各位看看如何吧-This is cookie control silverlight and js examples, please see how you? ? ?
- 2022-05-14 09:50:59下载
- 积分:1
-
这是一个用VC编写的网络通信程序,有两个服务器和端口,可以实现相互通信。使用时请注意修改IP地址...
这是一个用VC编写的网络通信程序,有两个服务器和端口,可以实现相互通信。使用时请注意修改IP地址-This is a VC prepared by the network communication procedures, and the two-port server can achieve mutual communication. When used to change IP addresses
- 2022-04-22 19:33:04下载
- 积分:1
-
Gateway procedures! Relatively simple! C BUILDER development (CMPP2.0 agreement)
网关程序!比较简单!C++BUILDER开发(CMPP2.0协议)-Gateway procedures! Relatively simple! C BUILDER development (CMPP2.0 agreement)
- 2022-11-21 17:10:03下载
- 积分:1