-
熟悉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
-
C #发达如何发送电子邮件
用C#开发的如何发送电子邮件的源码.可实现内部邮件的管理.-With C# Developed how to send e-mail source. May achieve the internal e-mail management.
- 2022-07-02 18:05:42下载
- 积分:1
-
telnet服务器的vc 实现源码
telnet服务器的 vc 实现 源码 工程全可直接编译 telnet服务器的 vc 实现 源码 工程全可直接编译 源文件全 可以直接编译
- 2023-09-01 06:40:03下载
- 积分:1
-
在VB环境下的帮助你远程获取MAC的代码 相当好用哦
在VB环境下的帮助你远程获取MAC的代码 相当好用哦 -in VB environment with the help of remote access to your MAC code very handy oh
- 2023-07-27 21:20:03下载
- 积分:1
-
It includes several instances about network programming ,and several programs wh...
里边有几个网络编程实例,还有一些可以用来传输用的程序,都是经过测试通过的,非常好用哦.-It includes several instances about network programming ,and several programs which can be used to transfer things.They were tested,and they are powerful.
- 2022-06-19 22:32:50下载
- 积分:1
-
- 2023-07-04 19:20:03下载
- 积分:1
-
这是一个简单的pop3客户端程序模版
这是一个简单的pop3客户端程序模版-This is a simple pop3 client template
- 2023-05-01 23:25:03下载
- 积分:1
-
一个采用Winsock实现P2P的例子,可以帮助了解P2P的原理。
一个采用Winsock实现P2P的例子,可以帮助了解P2P的原理。-using a peer-to-peer Winsock example, can help us understand the tenets of P2P.
- 2022-05-16 07:45:58下载
- 积分:1
-
windows socket 网络编程的grouptalk例子
windows socket 网络编程的grouptalk例子-windows socket network programming examples grouptalk
- 2022-03-18 16:34:44下载
- 积分:1
-
ace源代码中附带的管理日志服务器实现的一个具体的小例子,希望能上传成功...
ace源代码中附带的管理日志服务器实现的一个具体的小例子,希望能上传成功-ace in the source code attached to the log management server of a specific implementation of a small example of the hope of a successful upload
- 2023-01-29 20:20:03下载
- 积分:1