首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 做多客户端与服务器端的双向通信,采用QLocalSocket/QLocalServer实现起来简单,但通信效率太低,客户端发数据,服务器端的readyRead信...

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

资 源 简 介

做多客户端与服务器端的双向通信,采用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.

文 件 列 表

NamePipe
bin
src
VIP VIP
  • 大智若愚 1小时前 成为了本站会员

  • Mason 4小时前 成为了本站会员

  • 4小时前 成为了本站会员

  • Half_Punch 1天前 成为了本站会员

  • liqing71718 1天前 成为了本站会员

  • 伟国 1天前 成为了本站会员

  • songy 1天前 成为了本站会员

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

  • 52JOY... 1天前 成为了本站会员

0.167781s