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

您现在的位置是:虫虫源码 > C/C++/VC++ > 因为C++ Qt 4服务器类。X 5 X库。

因为C++ Qt 4服务器类。X 5 X库。

  • 资源大小:15.36 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: qt cpp xmlrpc

资 源 简 介

New repo for qtxmllib: https://bitbucket.org/alexSlyshyk/qtxmlrpc Simple qt 4.x/5.x xmlrpc server & client classes, ssl support. You can register your slots as xmlrpc callbacks in your qt app. XmlRpcServer * rpcServer = new XmlRpcServer();rpcServer->listen( QHostAddress("127.0.0.1"), 5430 );rpcServer->registerSlot( rpcServer, SLOT(echo(const QVariant&)) );rpcServer->registerSlot( rpcServer, SLOT(deferredEcho(const QVariant&)) ); public slots: QVariant echo( const QVariant& e ) { return e; } DeferredResult * deferredEcho( const QVariant& e ) { return new DeferredEcho( e ); } Compile sources, then: $ ./echo23:58:20.146 [0x618550 WRN] listening http://127.0.0.1:5430/RPC2 Another console: ``` $ python Python 2.5.1 (r251:54863, Nov 4 2007, 17:58:10) [GCC 4.1.2 (Gentoo 4.1.2)] on linux2 Type "help", "copyright", "credits" or "licen

文 件 列 表

qxmlrpc
.client.py.swp
client
server
xmlrpctest
VIP VIP
0.195655s