4#include <fc/thread/future.hpp>
8namespace fc {
namespace rpc {
10 namespace detail {
class variant_connection_impl; }
79 template<
typename Result>
89 template<
typename Result>
98 template<
typename Result>
106 template<
typename Result>
113 template<
typename Result>
122 template<
typename Result>
133 std::unique_ptr<detail::variant_connection_impl> my;
static constexpr microseconds maximum()
An order-preserving dictionary of variants.
Implements JSON-RPC 2.0 over a set of io streams.
void add_named_param_method(const fc::string &name, named_param_method)
Result call(const fc::string &method, const fc::variant &a1, const fc::variant &a2, microseconds timeout=microseconds::maximum())
future< fc::variant > async_call(const fc::string &method, const fc::variant &a1, const fc::variant &a2, const fc::variant &a3)
future< fc::variant > async_call(const fc::string &method, const fc::variant &a1)
variant call(const fc::string &method, const variant_object &named_args)
Sending in a variant_object will be issued as named parameters.
future< fc::variant > async_call(const fc::string &method, const variant_object &args)
args will be handled as named params
Result call(const fc::string &method, const fc::variant &a1, microseconds timeout=microseconds::maximum())
future< fc::variant > async_call(const fc::string &method, const variants &args)
Sending in an array of variants will be handled as positional arguments.
future< fc::variant > async_call(const fc::string &method)
void add_method(const fc::string &name, method)
void set_logger(const logger &l)
std::function< variant(const variants &)> method
variant_connection(fc::variant_stream::ptr in, fc::variant_stream::ptr out)
Result call(const fc::string &method, microseconds timeout=microseconds::maximum())
future< fc::variant > async_call(const fc::string &method, const fc::variant &a1, const fc::variant &a2)
void notice(const fc::string &method, const variants &args)
Result call(const fc::string &method, variant_object a1, microseconds timeout=microseconds::maximum())
void remove_method(const fc::string &name)
std::function< variant(const variant_object &)> named_param_method
Result call(const fc::string &method, const fc::variant &a1, const fc::variant &a2, const fc::variant &a3, microseconds timeout=microseconds::maximum())
void notice(const fc::string &method)
future< fc::variant > async_call(const fc::string &method, mutable_variant_object args)
void notice(const fc::string &method, const variant_object &named_args)
Result call(const fc::string &method, mutable_variant_object a1, microseconds timeout=microseconds::maximum())
logger get_logger() const
An order-preserving dictionary of variants.
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
std::shared_ptr< variant_connection > variant_connection_ptr
std::vector< fc::variant > variants