首页 开发技术 C++     /    QtRemoteObject(QtRO)进程间通信Demo

QtRemoteObject(QtRO)进程间通信Demo

上传者: luoyayun361 | 上传时间:2019/5/25 5:04:45 | 文件大小:31KB | 文件类型:zip
QtRemoteObject(QtRO)进程间通信Demo
博客地址:https://blog.csdn.net/luoyayun361/article/details/91588654QtRemoteObject简称QtRO,这是Qt5.9以后官方推出来的新模块,专门用于进程间通信(IPC)。
在这之前,要实现进程间通信有多种方式,这里就不做引见了,而Qt官方推出的这个新模块是基于Socket来封装的,使用起来非常方便,兼容LPC和RPC。
LPC即LocalProcessCommunication,而RPC是指RemoteProcessCommunication,两者都属于IPC。
QtRO能够工作于这两种不同的模式:如果用于LPC,则QtRO使用QLocalSocket;
如果是用于RPC,则使用QTcpSocket。
对于一个Qt开发者来说,如果项目中涉及到进程间通信,那么直接使用现成的模块进行开发,莫过于是最好的选择,集成度高,代码量少。

文件下载

资源详情

[{"title":"(16个子文件31KB)QtRemoteObject(QtRO)进程间通信Demo","children":[{"title":"QtRemoteDemos","children":[{"title":"Static","children":[{"title":"QtRoServer","children":[{"title":"commoninterface.cpp <span style='color:#111;'>496B</span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'>183B</span>","children":null,"spread":false},{"title":"mainwidget.cpp <span style='color:#111;'>1.05KB</span>","children":null,"spread":false},{"title":"mainwidget.h <span style='color:#111;'>626B</span>","children":null,"spread":false},{"title":"QtRoServer.pro <span style='color:#111;'>1.34KB</span>","children":null,"spread":false},{"title":"commoninterface.h <span style='color:#111;'>411B</span>","children":null,"spread":false},{"title":"mainwidget.ui <span style='color:#111;'>1.05KB</span>","children":null,"spread":false}],"spread":true},{"title":"QtRoClient","children":[{"title":"QtRoClient.pro <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'>183B</span>","children":null,"spread":false},{"title":"mainwidget.cpp <span style='color:#111;'>1.19KB</span>","children":null,"spread":false},{"title":"mainwidget.h <span style='color:#111;'>646B</span>","children":null,"spread":false},{"title":"mainwidget.ui <span style='color:#111;'>1.05KB</span>","children":null,"spread":false}],"spread":true},{"title":"GIF.gif <span style='color:#111;'>25.88KB</span>","children":null,"spread":false},{"title":"Reps","children":[{"title":"CommonInterface.rep <span style='color:#111;'>167B</span>","children":null,"spread":false}],"spread":true},{"title":"Static.pro <span style='color:#111;'>70B</span>","children":null,"spread":false}],"spread":true},{"title":"QtRemoteDemos.pro <span style='color:#111;'>48B</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 留小星:
    挺好用的一个demo,理解了RemoteObject通信的基本原理。2020-12-26

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明