-
熟悉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
-
一个IOCP的示例,封装了IO完成端口的IO模型。可以用做学习参考,也可以直接使用其中封装的类。...
一个IOCP的示例,封装了IO完成端口的IO模型。可以用做学习参考,也可以直接使用其中封装的类。-a IOCP example, the complete package, IO port IO model. Learning can be used as reference, which can be used directly to the Packaging category.
- 2022-01-24 18:57:17下载
- 积分:1
-
Server-side installation package. Installed on the desktop after the implementat
--- 服务端安装包。 ------安装后执行桌面上的Chat服务,方可提供连接聊天室。-- Server-side installation package. Installed on the desktop after the implementation of Chat services, be provided to connect the chat room.
- 2022-02-22 02:08:34下载
- 积分:1
-
WinSocket 编程指南,对编程人员有一定的帮助
WinSocket 编程指南,对编程人员有一定的帮助-Winsocket Programming Guide, the programming staff can help
- 2022-05-05 19:49:54下载
- 积分:1
-
vc++做的代理服务器 希望对大家有帮助
vc++做的代理服务器 希望对大家有帮助-vc do hope that the proxy server to be helpful
- 2022-03-13 07:43:44下载
- 积分:1
-
achieve a peer
实现了P2P网络通信
可以穿越防火墙
分为服务器段和客户端-achieve a peer-to-peer network communications across the firewall can be divided into server and client
- 2022-06-13 12:35:04下载
- 积分:1
-
网络状态检测程序,可以分析数据包内容,可以借鉴一下。
网络状态检测程序,可以分析数据包内容,可以借鉴一下。-network performance testing procedures, analyze data packets, we can learn some lessons from.
- 2023-06-01 22:15:03下载
- 积分:1
-
聊天服务器和客户端程序源码
聊天服务器和客户端程序源码-Chat server and client source code
- 2022-10-01 17:05:02下载
- 积分:1
-
vb超快速的多文件传送源码,在本地局域网上可达到1.8Mb+的速度...
vb超快速的多文件传送源码,在本地局域网上可达到1.8Mb+的速度-vb ultra-fast transmission of multi-source documents in the local LAN delivers up to speed
- 2022-03-21 06:18:44下载
- 积分:1
-
网页播放器,好好研究吧
网页播放器,好好研究吧-website player, a thorough study of it
- 2022-07-17 01:37:39下载
- 积分:1