登录
首页 » Windows Socket编程 » 做多客户端与服务器端的双向通信,采用QLocalSocket/QLocalServer实现起来简单,但通信效率太低,客户端发数据,服务器端的readyRead信...

做多客户端与服务器端的双向通信,采用QLocalSocket/QLocalServer实现起来简单,但通信效率太低,客户端发数据,服务器端的readyRead信...

于 2022-05-28 发布 文件大小:17.68 MB
0 98
下载积分: 2 下载次数: 1

代码说明:

做多客户端与服务器端的双向通信,采用QLocalSocket/QLocalServer实现起来简单,但通信效率太低,客户端发数据,服务器端的readyRead信号延时约100ms(看QT源码,发现里面用的是100ms定时器来检测信号),后来自己照着QLocalSocket的思路封装了windows的命名管道,采用多线程来接收数据,在本机上测试通过,通信效率有明显改善。-To do more client and server-side two-way communication, using QLocalSocket/QLocalServer to achieve them simple, but the communication efficiency is too low, the client made the data, the server-side readyRead the signal delay of about 100ms (see QT source code found inside using a 100ms timer device to detect the signal), and later their shining QLocalSocket encapsulates the idea of windows named pipes, using multiple threads to receive data, tested on this machine, the communication efficiency has clearly improved.

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

发表评论

0 个回复

  • 市场房贷首付但是赶得上赶得上广泛的感豆腐干豆腐干豆腐干豆腐干地方...
    市场房贷首付但是赶得上赶得上广泛的感豆腐干豆腐干豆腐干豆腐干地方-fsdfdsfds
    2022-07-20 06:30:03下载
    积分: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
  • 一个简单的TCP服务器,侦听任意端口。查看有连接,答:
    一个简单的TCP服务器, 可以侦听任意端口。 查看已有连接,并查看通讯数据。可以方便的发送数据给其中的连接。 是软件开发的好帮手-a simple TCP server, the interception arbitrary ports. View have connectivity, and data communications View. Convenience can send data to the link. Software development is a good helper
    2022-03-26 13:32:28下载
    积分:1
  • Daming after another shock wave source code, in 2004 raging across the network
    大名顶顶的震荡波源代码,曾在2004年肆虐整个网络-Daming after another shock wave source code, in 2004 raging across the network
    2022-02-22 03:56:50下载
    积分:1
  • Winsock网络文件传输序,包括基本的socket
    WinSock实现网络文件传输程序,包含基本socket编程,利用缓冲区读写,实现文件收发-WinSock network file transfer procedures, including the basic socket programming, the use of buffer to read and write, send and receive files
    2022-03-31 16:35:05下载
    积分:1
  • 用一个网页写的
    用vc写的一个基于网络的程序,可以用它来得到ip地址。-vc written with a Web-based program, you may use it to be ip address.
    2023-08-21 20:55:03下载
    积分:1
  • P2P applications: BitTorrent source code
    P2P应用:BitTorrent的源代码-P2P applications: BitTorrent source code
    2023-09-02 03:40:02下载
    积分:1
  • 本书专门讨论Windows网络技术,覆盖Windows 95/98/NT 4/2000/CE平台。内容包括NetBIOS和Windows重定向器方法、Win...
    本书专门讨论Windows网络编程技术,覆盖Windows 95/98/NT 4/2000/CE平台。内容包括NetBIOS和Windows重定向器方法、Winsock方法、客户端远程访问服务器方法。本书论述深入浅出、用大量实例详解了微软网络API函数的应用。配套光盘包含了所有实例代码,方便读者使用。本书适合中、高级程序设计人员以及网络设计与管理人员参考。-book devoted to the Windows network programming technology, Windows 95/98/NT coverage 4/2000/CE platform. Including NetBIOS, and Windows Redirector, Winsock, Client Remote Access server. The deals are easy to understand, with plenty examples Comments on the Microsoft Network Application API function. Matching discs containing all examples of code, user-friendly. The book suitable for middle- and high-level programming, as well as network design and management personnel.
    2022-05-21 19:08:51下载
    积分:1
  • 列举系统中安装的所有网络协议的序代码
    列举系统中安装的所有网络协议的程序代码-List of all installed on the system network protocol code
    2022-07-24 17:35:04下载
    积分:1
  • famous LAN chat, file transfer tool! WINSOCK classic study code!
    鼎鼎大名的局域网聊天、文件传输工具! WINSOCK学习的经典代码!-famous LAN chat, file transfer tool! WINSOCK classic study code!
    2022-02-18 14:34:17下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载