-
熟悉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
-
很典型的一款嗅探器原程序,经过我的编译,可以正确运行.
很典型的一款嗅探器原程序,经过我的编译,可以正确运行.-typical one sniffer program, I have the compiler can function correctly.
- 2022-02-26 16:28:15下载
- 积分:1
-
两台机器间的串口通讯,介绍了两台主机之间的串口通迅
两台机器间的串口通讯,介绍了两台主机之间的串口通迅-between the two machines serial communications, introduced the console between the two serial communications
- 2022-08-16 09:21:56下载
- 积分:1
-
从一个HTML文件得到txt。
Get the TXT from a HTML file.
- 2022-03-05 14:47:04下载
- 积分:1
-
VC++6 UDP点对点聊天
VC++6 UDP点对点聊天-VC six peer-to-peer chatting UDP
- 2022-05-27 23:10:14下载
- 积分:1
-
这是一个获取公网IP地址的小程序!
由网上收集而来
这是一个获取公网IP地址的小程序!
由网上收集而来-access to public IP addresses procedures for small! Come from the online collection
- 2022-03-06 19:30:39下载
- 积分:1
-
netnetnetnetnetnetnetnetnetnetnetnetnet
网站源码 网站源码 网站源码 网站源码 网站源码-netnetnetnetnetnetnetnetnetnetnetnetnet
- 2022-07-14 21:27:40下载
- 积分:1
-
window socket网络编程的重叠IO模型的例子
window socket网络编程的重叠IO模型的例子-window socket network programming overlap IO model examples
- 2022-03-18 17:32:44下载
- 积分:1
-
Combination of BO and the Remote Control function of two procedures, a reference...
结合BO和Remote Control两个功能的程序,可供学习参考-Combination of BO and the Remote Control function of two procedures, a reference for the study
- 2023-04-21 01:20:03下载
- 积分:1
-
基于VC++的开发网络通讯工具emule程序的源代码。
基于VC++的开发网络通讯工具emule程序的源代码。-Based on VC++ development tools for network communication emule program source code.
- 2022-08-26 10:45:14下载
- 积分:1