-
熟悉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
-
Internet Communications Engine (Ice)
针对这些使人不快的选择,ZeroC, Inc. 决定开发Internet C...
Internet Communications Engine (Ice)
针对这些使人不快的选择,ZeroC, Inc. 决定开发Internet Communications
Engine,简称Ice1。其主要设计目标是:
• 提供适用于异种环境的面向对象中间件平台。
• 提供一组完整的特性,支持广泛的领域中的实际的分布式应用的开发。
• 避免不必要的复杂性,使平台更易于学习和使用。
• 提供一种在网络带宽、内存使用和CPU 开销方面都很高效的实现。
• 提供一种具有内建安全性的实现,使它适用于不安全的公共网络。
更简单地说, Ice 的设计目标可陈述为:“让我们构建与CORBA 一样强
大的中间件平台,而又不去犯CORBA 所犯下的任何错误”。
- 2022-08-06 15:27:57下载
- 积分:1
-
CSocket的实习与数据库的内容是将选择B.
用CSocket 实习数据库的内容有选择地传送,希望对你有用-CSocket internship with the content of the database is to transmit the choice, be useful to you
- 2023-08-06 09:55:03下载
- 积分:1
-
简单的防火墙
该程序可以实现基本的包过滤,包过滤作为最基本的防火墙基层策略是属于比较早起的防火墙开发思路。从这个源码中你可以看到早期的防火墙的基本开发流程,这相信对你以后独立防火墙的编码有所帮助。
- 2023-08-30 13:25:03下载
- 积分:1
-
局域网内的聊天工具源代码...原理简单...值得初学者学习
局域网内的聊天工具源代码...原理简单...值得初学者学习-LAN chat tool for source code ... The principle should be simple for beginners to learn ...
- 2022-03-20 09:03:16下载
- 积分:1
-
JAVA页面密码保护
JAVA页面密码保护-password-protected pages JAVA
- 2022-10-16 08:35:03下载
- 积分:1
-
这是一个找到一篇关于权限设计的教程,写的很好,但是发现给出的代码,有些地方可能有笔误。贴出来供大家和我一起学习。...
这是一个找到一篇关于权限设计的教程,写的很好,但是发现给出的代码,有些地方可能有笔误。贴出来供大家和我一起学习。
-----------------------------------
首先,设置三种要素:用户、群组、角色。
用户为登录用,对应到人。群组对应为用户的集合,是一种特殊的用户。角色为一组权限项的集合,用户(群组)都有各自的角色。
权限的实现通过Permission类和Rule类来实现。 Permission供外部调用,Rule为一个接口,为权限判断规则。
-This is a mandate to find a design of the curriculum and write well, but the code is found, in some places may be misdirected. Put up for us and I study together.----------------------------------- First, the set of three elements : user, group, role. Users login to use corresponds to the people. User groups corresponding to the pool, a special users. A role for the authority, of the group assembled users (groups) have their own role. To achieve competence through Permission Rule category and class to be achieved. Permission for external calls, as a Rule interface for the authority to judge rules.
- 2022-06-13 15:45:39下载
- 积分:1
-
在linux上实现拨号上网的功能,可以在平台arm上运行,移植性比较好。...
在linux上实现拨号上网的功能,可以在平台arm上运行,移植性比较好。-on dial-up capabilities in the platform arm run transplanted better.
- 2022-07-17 01:04:52下载
- 积分:1
-
文件传输,自已学习时写的小程序,功能简单,适合初学网络编程的朋友,喜欢的朋友请下。...
文件传输,自已学习时写的小程序,功能简单,适合初学网络编程的朋友,喜欢的朋友请下。-FileTran
- 2023-07-31 00:25:02下载
- 积分:1
-
这是飞鸽传书源代码
it is source code for IPMSG
- 2022-09-13 01:25:03下载
- 积分:1