-
Socket多线程处理代码
双线程处理Socket,一个线程负责发一个负责 ,TCPDemo在具体实现时,设计了一个CTCPListener类专门用于服务器对特定TCP端口的侦听。另外,设计了一个CStreamSocket类专门用于TCP数据的传输。CStreamSocket作为基类,服务器程序从它派生出另一个类CSocketSender专门用于数据的发送,客户机程序从它派生出CSocketReceiver类专门用于数据的接收。这些类的继承结构如图3
- 2022-01-22 15:43:47下载
- 积分:1
-
熟悉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
-
messy personal website design system v1.3 by adding music to show functional, si...
凌乱设计个人网站音乐系统 v1.3 加入连播功能,可单页播放,加入连播SQL补丁,安全,速度稳定,系统支持MP3,RM-messy personal website design system v1.3 by adding music to show functional, single-page player, joined to show SQL patches, security, speed and stability, the system supports MP3, RM
- 2022-03-14 08:20:59下载
- 积分:1
-
the lucrative article management system Brick Article System (BAS) 1.2 beta code...
风中的板砖文章管理系统Brick Article System(BAS) 1.2测试版 代码重新编写 修改了狠多地方,不再多说了,喜欢的就自己看吧 -the lucrative article management system Brick Article System (BAS) 1.2 beta code rewrite the idea of amending more local, not more than that, like on ion battery
- 2022-02-01 12:56:45下载
- 积分:1
-
SockProxy : ============================ through the process server sock5 Acting...
SockProxy: ============================ 该程序透过服务器sock5代理访问防火墙外的程序,这里通过运行server程序来模拟远端。 不过该实例的运行需要有防火墙支持!-SockProxy : ============================ through the process server sock5 Acting visit outside the firewall procedures here by running server process to simulate the distal . However, the examples of the need for operational support firewall!
- 2022-04-19 17:29:55下载
- 积分:1
-
利用WinPcap TCP报当地把文本文件(下载winpca…
使用winpcap将tcp报文dump到本地文件(需要下载winpcap库)-use winpcap to tcp reported to the local dump the text document (download winpcap Treasurer)
- 2023-03-16 07:15:03下载
- 积分:1
-
介绍了网络的数据流量,使我们对接收与发送的数据有个了解,它的图像波形图更妙...
介绍了网络的数据流量,使我们对接收与发送的数据有个了解,它的图像波形图更妙-introduced to the network data flow, enabled us to send and receive the data has a understanding, it was even more interesting image waveform
- 2022-02-02 13:28:25下载
- 积分:1
-
仿真manet中的AODV协议,并对其仿真结果有详细分析,对同学者有一定帮助...
仿真manet中的AODV协议,并对其仿真结果有详细分析,对同学者有一定帮助-MANET simulation of AODV protocol, and its simulation results are detailed analysis of students who have some help
- 2022-02-05 12:50:40下载
- 积分:1
-
Server-side installation package. Installed on the desktop after the implementat
--- 服务端安装包。 ------安装后执行桌面上的Chat服务,方可提供连接聊天室。-- Server-side installation package. Installed on the desktop after the implementation of Chat services, be provided to connect the chat room.
- 2022-02-22 02:08:34下载
- 积分:1
-
网上人才招聘系统,有助于企事业单位在网上与人才招聘的互动。...
网上人才招聘系统,有助于企事业单位在网上与人才招聘的互动。-online recruitment system will help enterprises on the Internet and talent recruitment of interaction.
- 2022-03-25 10:03:27下载
- 积分:1