BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
6 namespace fc {
namespace rpc {
57 uint64_t _next_id = 1;
58 std::map<variant, fc::promise<variant>::ptr> _awaiting;
59 std::unordered_map<std::string, method> _methods;
void handle_reply(const response &response)
void add_method(const std::string &name, method m)
response(const optional< variant > &_id, const variant &_result, const optional< string > &version=optional< string >())
variant wait_for_response(const variant &request_id)
optional< std::string > jsonrpc
void on_unhandled(const std::function< variant(const string &, const variants &)> &unhandled)
std::vector< variant > variants
std::function< variant(const variants &)> method
request start_remote_call(const string &method_name, variants args)
optional< std::string > jsonrpc
optional< fc::variant > result
FC_REFLECT(fc::rpc::request,(id)(method)(params)(jsonrpc))
void remove_method(const std::string &name)
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
variant local_call(const string &method_name, const variants &args)
optional< error_object > error
response(const optional< variant > &_id, const error_object &error, const optional< string > &version=optional< string >())