-
熟悉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
-
使用Windows Socket API编写的通用函数,包含异步socket的使用
使用Windows Socket API编写的通用函数,包含异步socket的使用-General function writed by Windows Socket API, containing the use of non-synchronized socket
- 2022-08-21 08:54:25下载
- 积分:1
-
用vc实现的一个很不错的ftpserve,适合学习ftp编程
用vc实现的一个很不错的ftpserve,适合学习ftp编程-vc used to achieve a very good ftpserve, ftp program for learning
- 2022-04-23 00:03:25下载
- 积分:1
-
VNC 测试通过版(VC6下测试通过)开源代码 (包括服务端和客户端)...
VNC 测试通过版(VC6下测试通过)开源代码 (包括服务端和客户端)-VNC test version (VC6 under test) open source code (including server and client)
- 2023-04-22 11:35:03下载
- 积分:1
-
将图片以网页的形式在MFC 多文档程序中浏览。
将图片以网页的形式在MFC 多文档程序中浏览。-use mfc view the pictures in the form of html.
- 2022-01-26 05:53:00下载
- 积分:1
-
socket通信,包括SERV和CLIENT通信机制,可以用来建立基于socket通信的网络应用程序开发。...
socket通信,包括SERV和CLIENT通信机制,可以用来建立基于socket通信的网络应用程序开发。-socket communications, including the SERV and the CLIENT communication mechanism can be used to establish a socket-based communications network application development.
- 2022-03-18 21:04:15下载
- 积分:1
-
图片菜单的制作,是用MFC实现的,我还有很多这类的原码
图片菜单的制作,是用MFC实现的,我还有很多这类的原码-Photo menu production, is the MFC, I still have many of these original code
- 2022-01-22 16:25:43下载
- 积分:1
-
采用CAsyncSocket实现的聊天程序
采用CAsyncSocket实现的聊天程序-CAsyncSocket realize the use of the chat program
- 2022-03-23 07:42:03下载
- 积分:1
-
机器狗源码...C写的.
大家可以学习下.原理部分
机器狗源码...C写的.
大家可以学习下.原理部分-Dog source code ... C wrote. We can learn from the next. The principle part of
- 2022-02-24 18:21:33下载
- 积分:1
-
基于ip的万维网网络时延测试代码,往返时延
基于ip的万维网网络时延测试代码,往返时延-Ip-based World Wide Web network latency test code, round-trip delay
- 2022-01-26 08:00:51下载
- 积分:1