BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ method

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

Definition at line 40 of file state.hpp.

Constructor & Destructor Documentation

◆ ~state()

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

Definition at line 6 of file state.cpp.

Member Function Documentation

◆ add_method()

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

Definition at line 11 of file state.cpp.

◆ close()

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

Definition at line 58 of file state.cpp.

◆ handle_reply()

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

Definition at line 30 of file state.cpp.

◆ local_call()

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

Definition at line 21 of file state.cpp.

◆ on_unhandled()

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

Definition at line 64 of file state.cpp.

◆ remove_method()

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

Definition at line 16 of file state.cpp.

◆ start_remote_call()

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

Definition at line 46 of file state.cpp.

◆ wait_for_response()

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: