4 #ifndef _iqxmlrpc_client_h_
5 #define _iqxmlrpc_client_h_
11 #include <boost/optional.hpp>
12 #include <boost/scoped_ptr.hpp>
16 class Client_connection;
20 #pragma warning(disable: 4251)
29 const std::string& uri,
30 const std::string& vhost
43 return execute( method, pl );
52 void set_timeout(
int seconds );
55 void set_keep_alive(
bool keep_alive );
58 void set_authinfo(
const std::string& user,
const std::string& password);
67 friend class Auto_conn;
70 boost::scoped_ptr<Impl> impl_;
80 template <
class TRANSPORT>
89 const std::string& uri =
"/RPC",
90 const std::string& vhost =
""
101 virtual Client_connection* get_connection()
104 return proxy_ctr->connect(timeout());
111 typedef typename TRANSPORT::Proxy_connection Proxy_connection;
112 boost::optional<iqnet::Connector<Proxy_connection> > proxy_ctr;