mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
530 B
25 lines
530 B
#ifndef _TO_XMLRPCCLIENT_H
|
|
#define _TO_XMLRPCCLIENT_H
|
|
#include "XmlRpcClient.h"
|
|
using namespace XmlRpc;
|
|
|
|
/* xmlrpc client with timeout */
|
|
class TOXmlRpcClient : public XmlRpc::XmlRpcClient {
|
|
public:
|
|
TOXmlRpcClient(const char* host, int port, const char* uri=0
|
|
#ifdef HAVE_XMLRPCPP_SSL
|
|
, bool ssl=false
|
|
#endif
|
|
)
|
|
: XmlRpcClient(host, port, uri
|
|
#ifdef HAVE_XMLRPCPP_SSL
|
|
, ssl
|
|
#endif
|
|
) { }
|
|
|
|
bool execute(const char* method, XmlRpcValue const& params,
|
|
XmlRpcValue& result, double timeout);
|
|
};
|
|
|
|
#endif
|