-
熟悉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
-
语音聊天
语音聊天-Voice Chat
- 2022-03-30 00:25:07下载
- 积分:1
-
用VC++写访问IP程序,已经编译通过的使用参数。
用VC++写的获得IP程序,已经编译通过,使用时去掉文件只读属性,编译即可,很实用的,供参考-With VC++ Write access to IP procedures, has been compiled through the use of paper when removed read-only attribute, the compiler can be very useful for reference
- 2022-08-12 07:13:47下载
- 积分:1
-
一个超
一个体积超小的在线编辑器,UBB里经常用到-an ultra-small size of the online editor, frequently used UBB
- 2023-06-16 23:15:03下载
- 积分:1
-
一个简单的网页设计,不错的
一个简单的网页设计,不错的-a simple web design, good
- 2022-02-28 23:47:39下载
- 积分:1
-
Windows网络编程代码例子集合,可以供初学者参考
Windows网络编程代码例子集合,可以供初学者参考-Windows network programming code examples of a collection, you can reference for beginners
- 2022-01-26 06:04:37下载
- 积分:1
-
该代码能够实现蓝牙设备的搜索,根据搜索到的蓝牙地址,实现配对,连接。...
该代码能够实现蓝牙设备的搜索,根据搜索到的蓝牙地址,实现配对,连接。-The code enables Bluetooth devices to search, according to search for Bluetooth address, to achieve matching, connection.
- 2022-01-25 23:19:03下载
- 积分:1
-
C#实现分段重组(segment/reassembly)协议
发送端:发送端每收到一个上层报文都会为其设一个唯一的序列号。收到的大报文进行分段,构造S/R报头,如 REF _Ref371456073 h 图表1所示。构造报头和数据部分连接后,按序从片段号=1的报文开始发送,并设置重传定时器,直到发送完毕。重传定时器截止之前,如果收到了接收端发送的完全确认,即数据分段全部被接收,则清除该该序列号报文的缓存和定时器;如果收到了部分确认则根据部分确认的指示重传丢失的分段;如果定时器截止时还没有收到任何接收端的回
- 2023-04-22 01:25:04下载
- 积分:1
-
vb6.0下的html浏览器,用来学习的例程。可以参考。
vb6.0下的html浏览器,用来学习的例程。可以参考。-VB6.0 under html browser, used to learning routines. Can refer to.
- 2023-07-13 06:50:04下载
- 积分:1
-
java编写的聊天程序c/s
是我们课程设计的时候编写的。
java编写的聊天程序c/s
是我们课程设计的时候编写的。-java chat preparation procedures c /"s courses are designed to prepare the course.
- 2022-11-20 15:30:03下载
- 积分:1