I need to call my python function from C++ code. 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
-
How about let me google that for youShark– Shark2013-07-24 10:16:00 +00:00Commented Jul 24, 2013 at 10:16
-
1@Shark He wanted to call it from a c++ client. Same still applies though...Joseph Pla– Joseph Pla2013-07-24 10:57:09 +00:00Commented Jul 24, 2013 at 10:57
-
@JosephPla I understand, and - exactly my point ;)Shark– Shark2013-07-26 14:33:25 +00:00Commented Jul 26, 2013 at 14:33
Add a comment
|
1 Answer
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.
Here you go: XMLRPC For C and C++
Or this one: ulxmlrpcpp
There are many more implementations for C and C++. A quick google search could have gotten you that answer though ;)