-
熟悉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
-
P2P代码。。 。。很详细
P2P代码。。 。。很详细-P2P code. . . . . . Detail
- 2022-02-13 19:48:14下载
- 积分:1
-
模拟ftp服务器, 是学习windows编程上乘的选择
模拟ftp服务器, 是学习windows编程上乘的选择-simulation ftp server is studying windows programming experience the choice
- 2023-07-02 17:05:02下载
- 积分:1
-
vc++五子棋游戏
这是一个用vc++写的游戏代码,其中用到MFC,很适合初学者去学习代码,从中学习到更多的东西!该程序把大家平时很容易忘记的知识点多用到了,可能感觉又有时候代码很简单但是确实让初学者受益颇深啊!希望能对初学者有所帮助,实现我们对你们有用!
- 2022-01-23 10:38:36下载
- 积分:1
-
简单的网络编程下的窗口程序,功能强大
vc的简单网络编程,windows下ping程序,功能强大-vc simple network programming under windows ping procedures, powerful
- 2022-06-22 04:43:27下载
- 积分:1
-
简单聊天软件,简单易学
winscok2.0
简单聊天软件,简单易学
winscok2.0
-Simple chat software, easy to learn winscok2.0
- 2022-02-26 16:55:31下载
- 积分:1
-
使用winsock实现IPX协议客户/服务器的程序
使用winsock实现IPX协议客户/服务器的程序- Uses winsock to realize the IPX agreement customer/server
procedure
- 2022-03-20 15:23:24下载
- 积分:1
-
对网络编程的程序Winsock。是一个服务器
这是一个关于winsock的网络编程的程序。是一服务器端VC视频会议代码,希望对你们有用。-winsock on the network programming procedures. Is a server-side code VC Video Conference, and I hope to you useful. Ha ha!
- 2022-10-26 19:20:03下载
- 积分:1
-
利用拨号上网的简单例子。
利用拨号上网的简单例子。-use dial-up Internet access simple example.
- 2023-01-26 19:00:03下载
- 积分:1
-
Client程序同样分别创建一个TCP socket 和一个UDP socket,首先client使用TCP socket连接TCP Server。
连接成...
Client程序同样分别创建一个TCP socket 和一个UDP socket,首先client使用TCP socket连接TCP Server。
连接成功后显示提示信息;
然后client端向TCP Server发送“GET UDP PORT”字符串,Server收到后向client回送自己的UDP Server 端口号(即Client端仅知道TCP Server的端口号而不知道UDP Server的端口号);
client在收到UDP Server的端口号后, 为用户显示3个选项:
1.“Get current time(TCP)”服务器时间
2.“Echo Mode(UDP)”回显6
3.“Exit the program”.
-Client program also creates a TCP socket, respectively, and a UDP socket, the first client to use TCP socket connection TCP Server. After a successful connection displays a prompt message and then client-side to the TCP Server sends " GET UDP PORT" string, Server receipt back to the client to send their UDP Server port number (ie, Client-side only to know the TCP Server" s UDP port number do not know Server" s port number) client received UDP Server port number, in order to the user three options: 1. " Get current time (TCP)" server time 2. " Echo Mode (UDP)" echo 63. " Exit the program" .
- 2023-07-31 00:05:03下载
- 积分:1