NamePipe

所属分类:网络编程
开发工具:QT
文件大小:18103KB
下载次数:207
上传日期:2009-09-09 11:13:01
上 传 者rhlshh
说明:  做多客户端与服务器端的双向通信,采用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\src\Makefile (9913, 2008-07-22)
NamePipe\src\ipc.suo (14848, 2009-09-07)
NamePipe\src\ipc1.suo (9728, 2009-09-04)
NamePipe\src\server\localfortuneserver.pro (357, 2008-04-28)
NamePipe\src\server\NamePipeServer.vcproj (12288, 2009-09-09)
NamePipe\src\server\main.cpp (2475, 2008-04-28)
NamePipe\src\server\Makefile (5550, 2008-07-22)
NamePipe\src\server\Makefile.Debug (63725, 2008-07-22)
NamePipe\src\server\Makefile.Release (63811, 2008-07-22)
NamePipe\src\server\server.cpp (2412, 2009-09-09)
NamePipe\src\server\server.h (2994, 2009-09-08)
NamePipe\src\server\localsocket.h (1852, 2009-09-09)
NamePipe\src\server\localserver.cpp (3011, 2009-09-09)
NamePipe\src\server\localserver.h (1449, 2009-09-09)
NamePipe\src\server\localsocket.cpp (3495, 2009-09-09)
NamePipe\src\server\localfortuneserver.ncb (3673088, 2009-09-09)
NamePipe\src\server\NamePipeServer.sln (1075, 2009-09-09)
NamePipe\src\server\localfortuneserver.suo (13312, 2009-09-09)
NamePipe\src\server\DataReadClient1.txt (780, 2009-09-07)
NamePipe\src\server\DataReadClient2.txt (780, 2009-09-07)
NamePipe\src\server\Deleted\moc_localsocketthread_cpp.bak (2631, 2009-09-07)
NamePipe\src\server\tmp\obj\release_shared\main.obj (49076, 2008-07-23)
NamePipe\src\server\tmp\obj\release_shared\moc_server.obj (47231, 2009-01-05)
NamePipe\src\server\tmp\obj\release_shared\server.obj (90631, 2009-01-09)
NamePipe\src\server\tmp\obj\release_shared\BuildLog.htm (2827, 2009-01-09)
NamePipe\src\server\tmp\obj\debug_shared\BuildLog.htm (8028, 2009-09-09)
NamePipe\src\server\tmp\obj\debug_shared\localsocketthread.obj (110423, 2009-09-07)
NamePipe\src\server\tmp\obj\debug_shared\moc_localsocketthread.obj (95538, 2009-09-07)
NamePipe\src\server\tmp\obj\debug_shared\localserver.obj (152409, 2009-09-09)
NamePipe\src\server\tmp\obj\debug_shared\localsocket.obj (119033, 2009-09-09)
NamePipe\src\server\tmp\obj\debug_shared\main.obj (113949, 2009-09-09)
NamePipe\src\server\tmp\obj\debug_shared\server.obj (188950, 2009-09-09)
NamePipe\src\server\tmp\obj\debug_shared\moc_localserver.obj (109513, 2009-09-09)
NamePipe\src\server\tmp\obj\debug_shared\moc_localsocket.obj (112378, 2009-09-09)
NamePipe\src\server\tmp\obj\debug_shared\moc_server.obj (109780, 2009-09-09)
NamePipe\src\server\tmp\moc\release_shared\moc_server.cpp (2027, 2009-01-05)
NamePipe\src\server\tmp\moc\debug_shared\moc_server.cpp (2406, 2009-09-09)
NamePipe\src\server\tmp\moc\debug_shared\moc_localsocket.cpp (5015, 2009-09-09)
NamePipe\src\server\tmp\moc\debug_shared\moc_localserver.cpp (4070, 2009-09-09)
... ...

These examples demonstrate IPC support in Qt. The example launcher provided with Qt can be used to explore each of the examples in this directory. Documentation for these examples can be found via the Tutorial and Examples link in the main Qt documentation. Finding the Qt Examples and Demos launcher ========================================== On Windows: The launcher can be accessed via the Windows Start menu. Select the menu entry entitled "Qt Examples and Demos" entry in the submenu containing the Qt tools. On Mac OS X: For the binary distribution, the qtdemo executable is installed in the /Developer/Applications/Qt directory. For the source distribution, it is installed alongside the other Qt tools on the path specified when Qt is configured. On Unix/Linux: The qtdemo executable is installed alongside the other Qt tools on the path specified when Qt is configured. On all platforms: The source code for the launcher can be found in the examples/tools/qtdemo directory in the Qt package. This example is built at the same time as the Qt libraries, tools, examples, and demonstrations.

近期下载者

相关文件


收藏者