简体   繁体   English

使用XML-RPC从C ++调用python服务器功能

[英]Calling python server function from C++ using XML-RPC

I need to call my python function from C++ code. 我需要从C ++代码调用python函数。 A XML-RPC server is running on the python server so do we have some way to call the python server function through C++ code using XML-RPC server call XML-RPC服务器正在python服务器上运行,因此我们有某种方法可以使用XML-RPC服务器调用通过C ++代码调用python服务器功能

XML RPC is platform independent so it doesn't matter what the server is written in. The following is a link to a small library for formatting and sending XML RPC messages to your server. XML RPC是独立于平台的,因此无论服务器写入什么都无所谓。以下是指向小型库的链接,该库用于格式化XML RPC消息并将其发送到服务器。

Here you go: XMLRPC For C and C++ 在这里,您可以: XMLRPC for C和C ++

Or this one: ulxmlrpcpp 或这个: ulxmlrpcpp

There are many more implementations for C and C++. C和C ++还有许多实现。 A quick google search could have gotten you that answer though ;) 快速的谷歌搜索可能已经给你答案了;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM