文件名称:NamePipe
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 17.68mb
- 下载次数:
- 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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
NamePipe
........\bin
........\...\client1.exe
........\...\client1.ilk
........\...\client1.pdb
........\...\client2.exe
........\...\client2.ilk
........\...\client2.pdb
........\...\server.exe
........\...\server.ilk
........\...\server.pdb
........\src
........\...\client1
........\...\.......\client.cpp
........\...\.......\client.h
........\...\.......\client1.ncb
........\...\.......\client1.sln
........\...\.......\client1.vcproj
........\...\.......\client2.ncb
........\...\.......\debug
........\...\.......\.....\client1.ilk
........\...\.......\.....\client1.pdb
........\...\.......\.....\QtCored4.dll
........\...\.......\.....\QtGuid4.dll
........\...\.......\.....\QtNetworkd4.dll
........\...\.......\localfortuneclient.ncb
........\...\.......\localfortuneclient.pro
........\...\.......\localsocket.cpp
........\...\.......\localsocket.h
........\...\.......\main.cpp
........\...\.......\Makefile
........\...\.......\Makefile.Debug
........\...\.......\Makefile.Release
........\...\.......\tmp
........\...\.......\...\moc
........\...\.......\...\...\debug_shared
........\...\.......\...\...\............\moc_client.cpp
........\...\.......\...\...\............\moc_localsocket.cpp
........\...\.......\...\...\release_shared
........\...\.......\...\...\..............\moc_client.cpp
........\...\.......\...\obj
........\...\.......\...\...\debug_shared
........\...\.......\...\...\............\BuildLog.htm
........\...\.......\...\...\............\client.obj
........\...\.......\...\...\............\localsocket.obj
........\...\.......\...\...\............\main.obj
........\...\.......\...\...\............\moc_client.obj
........\...\.......\...\...\............\moc_localsocket.obj
........\...\.......\...\...\release_shared
........\...\.......\...\...\..............\BuildLog.htm
........\...\.......\...\...\..............\client.obj
........\...\.......\...\...\..............\main.obj
........\...\.......\...\...\..............\moc_client.obj
........\...\.......\vc70.idb
........\...\.......\vc70.pdb
........\...\client2
........\...\.......\client.cpp
........\...\.......\client.h
........\...\.......\client1.ncb
........\...\.......\client2.ncb
........\...\.......\client2.sln
........\...\.......\client2.vcproj
........\...\.......\debug
........\...\.......\.....\client1.ilk
........\...\.......\.....\client1.pdb
........\...\.......\.....\QtCored4.dll
........\...\.......\.....\QtGuid4.dll
........\...\.......\.....\QtNetworkd4.dll
........\...\.......\localfortuneclient.ncb
........\...\.......\localfortuneclient.pro
........\...\.......\localsocket.cpp
........\...\.......\localsocket.h
........\...\.......\main.cpp
........\...\.......\Makefile
........\...\.......\Makefile.Debug
........\...\.......\Makefile.Release
........\...\.......\tmp
........\...\.......\...\moc
........\...\.......\...\...\debug_shared
........\...\.......\...\...\............\moc_client.cpp
........\...\.......\...\...\............\moc_localsocket.cpp
........\...\.......\...\...\release_shared
........\...\.......\...\...\..............\moc_client.cpp
........\...\.......\...\obj
........\...\.......\...\...\debug_shared
........\...\.......\...\...\............\BuildLog.htm
........\...\.......\...\...\............\client.obj
........\...\.......\...\...\............\localsocket.obj
........\...\.......\...\...\............\main.obj
........\...\.......\...\...\............\moc_client.obj
........\...\.......\...\...\............\moc_localsocket.obj
........\...\.......\...\...\release_shared
........\...\.......\...\...\..............\BuildLog.htm
........\...\.......\...\...\..............\client.obj
........\...\.......\...\...\..............\main.obj
........\...\.......\...\...\..............\moc_client.obj
........\...\.......\vc70.idb
........\...\.......\vc70.pdb
........\...\localsocket.ncb
........\...\Makefile
........\bin
........\...\client1.exe
........\...\client1.ilk
........\...\client1.pdb
........\...\client2.exe
........\...\client2.ilk
........\...\client2.pdb
........\...\server.exe
........\...\server.ilk
........\...\server.pdb
........\src
........\...\client1
........\...\.......\client.cpp
........\...\.......\client.h
........\...\.......\client1.ncb
........\...\.......\client1.sln
........\...\.......\client1.vcproj
........\...\.......\client2.ncb
........\...\.......\debug
........\...\.......\.....\client1.ilk
........\...\.......\.....\client1.pdb
........\...\.......\.....\QtCored4.dll
........\...\.......\.....\QtGuid4.dll
........\...\.......\.....\QtNetworkd4.dll
........\...\.......\localfortuneclient.ncb
........\...\.......\localfortuneclient.pro
........\...\.......\localsocket.cpp
........\...\.......\localsocket.h
........\...\.......\main.cpp
........\...\.......\Makefile
........\...\.......\Makefile.Debug
........\...\.......\Makefile.Release
........\...\.......\tmp
........\...\.......\...\moc
........\...\.......\...\...\debug_shared
........\...\.......\...\...\............\moc_client.cpp
........\...\.......\...\...\............\moc_localsocket.cpp
........\...\.......\...\...\release_shared
........\...\.......\...\...\..............\moc_client.cpp
........\...\.......\...\obj
........\...\.......\...\...\debug_shared
........\...\.......\...\...\............\BuildLog.htm
........\...\.......\...\...\............\client.obj
........\...\.......\...\...\............\localsocket.obj
........\...\.......\...\...\............\main.obj
........\...\.......\...\...\............\moc_client.obj
........\...\.......\...\...\............\moc_localsocket.obj
........\...\.......\...\...\release_shared
........\...\.......\...\...\..............\BuildLog.htm
........\...\.......\...\...\..............\client.obj
........\...\.......\...\...\..............\main.obj
........\...\.......\...\...\..............\moc_client.obj
........\...\.......\vc70.idb
........\...\.......\vc70.pdb
........\...\client2
........\...\.......\client.cpp
........\...\.......\client.h
........\...\.......\client1.ncb
........\...\.......\client2.ncb
........\...\.......\client2.sln
........\...\.......\client2.vcproj
........\...\.......\debug
........\...\.......\.....\client1.ilk
........\...\.......\.....\client1.pdb
........\...\.......\.....\QtCored4.dll
........\...\.......\.....\QtGuid4.dll
........\...\.......\.....\QtNetworkd4.dll
........\...\.......\localfortuneclient.ncb
........\...\.......\localfortuneclient.pro
........\...\.......\localsocket.cpp
........\...\.......\localsocket.h
........\...\.......\main.cpp
........\...\.......\Makefile
........\...\.......\Makefile.Debug
........\...\.......\Makefile.Release
........\...\.......\tmp
........\...\.......\...\moc
........\...\.......\...\...\debug_shared
........\...\.......\...\...\............\moc_client.cpp
........\...\.......\...\...\............\moc_localsocket.cpp
........\...\.......\...\...\release_shared
........\...\.......\...\...\..............\moc_client.cpp
........\...\.......\...\obj
........\...\.......\...\...\debug_shared
........\...\.......\...\...\............\BuildLog.htm
........\...\.......\...\...\............\client.obj
........\...\.......\...\...\............\localsocket.obj
........\...\.......\...\...\............\main.obj
........\...\.......\...\...\............\moc_client.obj
........\...\.......\...\...\............\moc_localsocket.obj
........\...\.......\...\...\release_shared
........\...\.......\...\...\..............\BuildLog.htm
........\...\.......\...\...\..............\client.obj
........\...\.......\...\...\..............\main.obj
........\...\.......\...\...\..............\moc_client.obj
........\...\.......\vc70.idb
........\...\.......\vc70.pdb
........\...\localsocket.ncb
........\...\Makefile