#include <rpc_client.h>
|
| | t_rpc_client (uint32_t ip, uint16_t port, boost::optional< epee::net_utils::http::login > user, epee::net_utils::ssl_options_t ssl_options) |
| |
| template<typename T_req , typename T_res > |
| bool | basic_json_rpc_request (T_req &req, T_res &res, std::string const &method_name) |
| |
| template<typename T_req , typename T_res > |
| bool | json_rpc_request (T_req &req, T_res &res, std::string const &method_name, std::string const &fail_msg) |
| |
| template<typename T_req , typename T_res > |
| bool | rpc_request (T_req &req, T_res &res, std::string const &relative_url, std::string const &fail_msg) |
| |
| bool | check_connection () |
| |
Definition at line 45 of file rpc_client.h.
◆ t_rpc_client()
Definition at line 50 of file rpc_client.h.
bool set_server(const std::string &address, boost::optional< login > user, ssl_options_t ssl_options=ssl_support_t::e_ssl_support_autodetect)
boost::endian::big_uint32_t ip
boost::endian::big_uint16_t port
const T & move(const T &t)
std::string to_string(t_connection_type type)
◆ basic_json_rpc_request()
template<typename T_req , typename T_res >
| bool tools::t_rpc_client::basic_json_rpc_request |
( |
T_req & |
req, |
|
|
T_res & |
res, |
|
|
std::string const & |
method_name |
|
) |
| |
|
inline |
Definition at line 64 of file rpc_client.h.
connection(typename TProtocol::config_type &ref_config)
const std::string & get_port() const
bool invoke_http_json_rpc(const boost::string_ref uri, std::string method_name, const t_request &out_struct, t_response &result_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref http_method="GET", const std::string &req_id="0")
const std::string & get_host() const
◆ check_connection()
| bool tools::t_rpc_client::check_connection |
( |
| ) |
|
|
inline |
Definition at line 146 of file rpc_client.h.
connection(typename TProtocol::config_type &ref_config)
◆ json_rpc_request()
template<typename T_req , typename T_res >
| bool tools::t_rpc_client::json_rpc_request |
( |
T_req & |
req, |
|
|
T_res & |
res, |
|
|
std::string const & |
method_name, |
|
|
std::string const & |
fail_msg |
|
) |
| |
|
inline |
Definition at line 91 of file rpc_client.h.
connection(typename TProtocol::config_type &ref_config)
const std::string & get_port() const
bool invoke_http_json_rpc(const boost::string_ref uri, std::string method_name, const t_request &out_struct, t_response &result_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref http_method="GET", const std::string &req_id="0")
#define CORE_RPC_STATUS_OK
const std::string & get_host() const
◆ rpc_request()
template<typename T_req , typename T_res >
| bool tools::t_rpc_client::rpc_request |
( |
T_req & |
req, |
|
|
T_res & |
res, |
|
|
std::string const & |
relative_url, |
|
|
std::string const & |
fail_msg |
|
) |
| |
|
inline |
Definition at line 119 of file rpc_client.h.
bool invoke_http_json(const boost::string_ref uri, const t_request &out_struct, t_response &result_struct, t_transport &transport, std::chrono::milliseconds timeout=std::chrono::seconds(15), const boost::string_ref method="GET")
connection(typename TProtocol::config_type &ref_config)
const std::string & get_port() const
#define CORE_RPC_STATUS_OK
const std::string & get_host() const
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/src/common/rpc_client.h