BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Types | Public Member Functions | List of all members
fc::rpc::state Class Reference

#include <state.hpp>

Public Types

typedef std::function< variant(const variants &)> method

Public Member Functions

 ~state ()
void add_method (const std::string &name, method m)
void remove_method (const std::string &name)
variant local_call (const string &method_name, const variants &args)
void handle_reply (const response &response)
request start_remote_call (const string &method_name, variants args)
variant wait_for_response (const variant &request_id)
void close ()
void on_unhandled (const std::function< variant(const string &, const variants &)> &unhandled)

Detailed Description

Definition at line 37 of file state.hpp.

Member Typedef Documentation

typedef std::function<variant(const variants&)> fc::rpc::state::method

Definition at line 40 of file state.hpp.

Constructor & Destructor Documentation

fc::rpc::state::~state ( )

Definition at line 6 of file state.cpp.

Member Function Documentation

void fc::rpc::state::add_method ( const std::string &  name,
method  m 

Definition at line 11 of file state.cpp.

void fc::rpc::state::close ( )

Definition at line 58 of file state.cpp.

void fc::rpc::state::handle_reply ( const response response)

Definition at line 30 of file state.cpp.

variant fc::rpc::state::local_call ( const string &  method_name,
const variants args 

Definition at line 21 of file state.cpp.

void fc::rpc::state::on_unhandled ( const std::function< variant(const string &, const variants &)> &  unhandled)

Definition at line 64 of file state.cpp.

void fc::rpc::state::remove_method ( const std::string &  name)

Definition at line 16 of file state.cpp.

request fc::rpc::state::start_remote_call ( const string &  method_name,
variants  args 

Definition at line 46 of file state.cpp.

variant fc::rpc::state::wait_for_response ( const variant request_id)

Definition at line 52 of file state.cpp.

The documentation for this class was generated from the following files: