-
熟悉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
-
project1
定时闹铃系统,可后台操作
功能很好,一键停止(Regular alarm system, background operation)
- 2014-03-31 21:03:07下载
- 积分:1
-
MyJbox2D
基本JBOX2D做的一个实例,封装圆形,矩形以及多边形,绑定精灵。用愤怒的小鸟图片为例子,大家下载自己修改(JBOX2D do a basic example of package circular, rectangular and polygonal, binding wizard. Photo by angry birds as an example, we download their modified)
- 2011-06-15 15:47:48下载
- 积分:1
-
dist
springboot demo 集成redis MQ mybatis 以及thymf模板 可以直接使用(springboot demo MQ mybatis thymf)
- 2020-06-17 08:20:01下载
- 积分:1
-
Shutdown
设置倒计时关机程序的源码,会显示关机倒计时间,可以取消关机任务(Set the source countdown shutdown, shut down the remaining time is displayed, you can cancel the shutdown task)
- 2010-10-11 11:30:10下载
- 积分:1
-
ConferenceTrackManagementProject
说明: java开发的bin packing, 个人感觉很有用。。。。可以下载学习(The bin packing developed by Java is very useful to me. Downloadable Learning)
- 2020-06-23 22:20:02下载
- 积分:1
-
how_to_use_MDI_Jade5
MDI jade5是很好的xrd分析软件,本文通过实例详细介绍了mdi jade5的使用方法。(MDI jade5 is a good xrd analysis software, this article introduces an example to use mdi jade5.)
- 2010-06-08 00:32:19下载
- 积分:1
-
tide
潮汐准调和分析的程序,希望大家喜欢。 最主要的是太多公式要输入,希望以后不用再输了。(Tidal quasi-harmonic analysis procedures, I hope everyone likes. The most important thing is to enter the formula too much, do not lose the hope that it will.)
- 2008-06-01 10:19:30下载
- 积分:1
-
3
说明: cx lka mgewra oi arwefjasl arew awejfiwerasekjgfna(atreawoif cawektrjaingf a t oawertn gawergna lgn)
- 2009-05-25 10:48:38下载
- 积分:1
-
FreqWithinBlock
Frequency within a block test of statistical randomness
- 2011-01-13 03:03:40下载
- 积分:1