在 C++ 和 Windows 中使用 XmlRpc [英] Using XmlRpc in C++ and Windows

查看:43
本文介绍了在 C++ 和 Windows 中使用 XmlRpc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 Windows 平台上的 C++ 中使用 XmlRpc.尽管我的朋友向我保证 XmlRpc 是一种广泛可用的标准技术",但可用的库并不多.事实上,我只找到了一个库可以在 Windows 上执行此操作,(加上另一个声称你必须做很多工作才能在 Windows 上编译它).我找到的库是 Chris Morley 的XmlRpc++".但是,它不支持 SSL.

I need to use XmlRpc in C++ on a Windows platform. Despite the fact that my friends assure me that XmlRpc is a "widely available standard technology", there are not many libraries available for it. In fact I only found one library to do this on Windows, (plus another one that claims "you'll have to do a lot of work to get this to compile on Windows). The library I found was Chris Morley's "XmlRpc++". However, it doesn't have support for SSL.

因此我的问题是:我应该使用什么库?

My question therefore is: what library should I be using?

推荐答案

我已经编写了自己的 C++ 库.它在 sourceforge 上可用:xmlrpcc4win

I've written my own C++ library. It's available at sourceforge: xmlrpcc4win

我编写它而不是使用 Chris Morley 的原因是:

The reason I wrote it rather than using Chris Morley's was that:

  • Windows 的wininet.lib"库为您提供了处理 Http 请求的所有功能,所以我宁愿使用它.结果,我只需要 1700 个 LOC.
  • "wininet.lib",因此我的实现,支持 HTTPS
  • Chris Morley 对 STL 容器的使用效率很低(Chris,如果你读到这个,请给我发邮件).

这篇关于在 C++ 和 Windows 中使用 XmlRpc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆