登录
首页 » Windows Socket编程 » Socket多线程处理代码

Socket多线程处理代码

于 2022-01-22 发布 文件大小:6.30 kB
0 124
下载积分: 2 下载次数: 1

代码说明:

双线程处理Socket,一个线程负责发一个负责 ,TCPDemo在具体实现时,设计了一个CTCPListener类专门用于服务器对特定TCP端口的侦听。另外,设计了一个CStreamSocket类专门用于TCP数据的传输。CStreamSocket作为基类,服务器程序从它派生出另一个类CSocketSender专门用于数据的发送,客户机程序从它派生出CSocketReceiver类专门用于数据的接收。这些类的继承结构如图3

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • This a remarkably agreement Network engines, including two parts : a server used...
    这是一个Tcp协议的网络引擎,包括两个部分: a、服务器采用完成端口模型,提供了丰富的接口函数 b、客户端采用三线程加重叠Io模型,速度快,稳定 都采用回调函数接收数据,是对网络Tcp模型Socket的完整封装,所有代码在Windows2000下测试通过,并已应用到很多现有的中型网络系统中。-This a remarkably agreement Network engines, including two parts : a server used to complete port model, a rich interface function b, client using three overlapping threads increases Io model, speed and stability using a callback function to receive information, the network model DEC Socket complete package, all of the code in the test under Windows 2000, and has been applied to many existing medium-sized network systems.
    2022-03-13 04:19:31下载
    积分:1
  • IE插件
    IE插件的编写,如果百度和3721,相同,呵呵,大家要做的易于删除呀,-IE plug-in the preparation, if Baidu and 3721, the same, what we need to do easy to delete it, huh
    2023-07-29 14:55:03下载
    积分:1
  • 该实例通过WinInet接口实现了完整的FTP客户序,其界面类似于CuteFTP 和LeapFTP...
    该实例通过WinInet编程接口实现了完整的FTP客户程序,其界面类似于CuteFTP 和LeapFTP-example through the WinInet Programming Interface a complete FTP client, its user interface is similar to CuteFTP and LeapFTP
    2022-07-26 23:57:56下载
    积分:1
  • PHP登陆验证,上传图片。简单功能实现。但是界面没有作优化,请大家自己弄咯。很不错的小序...
    PHP登陆验证,上传图片。简单功能实现。但是界面没有作优化,请大家自己弄咯。很不错的小程序-this is php login project
    2022-04-10 13:32:49下载
    积分:1
  • Example of using PIPEs for consoles apps
    Example of using PIPEs for consoles apps
    2022-01-22 10:33:53下载
    积分:1
  • 处理RFC822格式信件
    处理RFC822格式信件-RFC822 format handling letters
    2022-06-12 17:26:20下载
    积分:1
  • 非常简易的一个端口扫描序 说明了一些端口扫描的基本思路...
    非常简易的一个端口扫描程序 说明了一些端口扫描的基本思路 -a very simple description of the procedures for port scanning port scanning some basic ideas
    2022-01-25 14:56:32下载
    积分:1
  • the software in peer
    本软件要在网络中实现点对点的实时对话,主要的工作大约有: A).软件界面的实现。 B).两台主机通过Socket进行通信的实现。 C).如何从本机接收到要发送给对方的消息与如何接收到从对方来的消息并显示的过程。 D).进行异常处理。-the software in peer-to-peer networks to achieve real-time dialogue, the main work around : A). Software interface is achieved. B). Two mainframe through Socket communication is achieved. C). How receive from the machine to be sent to the other party and how to receive news from the other side of the news and display process. D). For Exception Handling.
    2022-04-12 10:02:14下载
    积分:1
  • 使用WebBrowser控件开发浏览器
    使用WebBrowser控件开发浏览器程序-use WebBrowser control procedures browser
    2022-01-25 18:10:27下载
    积分:1
  • 在制作安装序或在运行新序之前相关配置,利用该代码创建IIS服务器。...
    在制作安装程序或在运行新程序之前相关配置,利用该代码创建IIS服务器。-Installed in the production process or in the running before the new procedures related to configuration, use the code to create IIS server.
    2022-05-07 23:31:39下载
    积分:1
  • 696518资源总数
  • 104744会员总数
  • 33今日下载