-
熟悉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
-
vc实现通过的域名查找程序
vc实现通过的域名查找程序-vc achieve the domain name search procedures
- 2022-02-28 20:48:44下载
- 积分:1
-
里面详细介绍了很多ASP的错误代码代号之类的,在出错时可以查到到底是那里出错等信息。...
里面详细介绍了很多ASP的错误代码代号之类的,在出错时可以查到到底是那里出错等信息。-inside a lot of detailed error code ASP code like the error can be found in the end there is wrong information.
- 2022-06-21 00:47:30下载
- 积分:1
-
这是一个基于API自己定义的Socket封装基类。
这是一个基于API自己定义的Socket封装基类。-This is a definition based on its own API Socket Packaging base class.
- 2022-10-25 02:20:03下载
- 积分:1
-
在Windows下用VC6.0编的网络火柴棍游戏,包含服务器端和客户端,一次同时开放两个客户端...
在Windows下用VC6.0编的网络火柴棍游戏,包含服务器端和客户端,一次同时开放两个客户端-In Windows, compiled with VC6.0 network matchstick games, including server-side and client-side, one at the same time, opening up two client-side
- 2023-08-07 04:25:05下载
- 积分:1
-
LDAP操作使用,jbuilder开发。
LDAP操作使用,jbuilder开发。-LDAP operate, JBuilder development.
- 2022-03-21 21:09:40下载
- 积分:1
-
使用winsock实现IPX协议客户/服务器的程序
使用winsock实现IPX协议客户/服务器的程序- Uses winsock to realize the IPX agreement customer/server
procedure
- 2022-03-20 15:23:24下载
- 积分:1
-
基于MATLAB下的WinsockAPI网络编程,有很好的参考价值,值得一看!...
基于MATLAB下的WinsockAPI网络编程,有很好的参考价值,值得一看!-MATLAB-based network programming WinsockAPI under, has a very good reference value, worth a visit!
- 2023-05-15 16:40:03下载
- 积分:1
-
on the Internet under the ISCSI source code perhaps useful for all
在网上下的iscsi源代码也许对大家有用-on the Internet under the ISCSI source code perhaps useful for all
- 2022-08-11 16:01:42下载
- 积分:1
-
采用多线程技术,利用socket通信。实现六个线程的跑步比赛,通过内核对象event,实现线程的同步。...
采用多线程技术,利用socket通信。实现六个线程的跑步比赛,通过内核对象event,实现线程的同步。-Multi-threading technology, the use of socket communication. To achieve six threads running race through the kernel object event, to achieve thread synchronization.
- 2022-02-06 18:21:52下载
- 积分:1