BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
fc::local_api_connection Class Reference

#include <api_connection.hpp>

Inheritance diagram for fc::local_api_connection:

Public Member Functions

 local_api_connection (uint32_t max_depth)
 ~local_api_connection ()
virtual variant send_call (api_id_type api_id, string method_name, variants args=variants()) override
virtual variant send_callback (uint64_t callback_id, variants args=variants()) override
virtual void send_notice (uint64_t callback_id, variants args=variants()) override
void set_remote_connection (const std::shared_ptr< fc::api_connection > &rc)
const std::shared_ptr< fc::api_connection > & remote_connection () const
- Public Member Functions inherited from fc::api_connection
 api_connection (uint32_t max_depth)
virtual ~api_connection ()
template<typename T >
api< T > get_remote_api (api_id_type api_id=0)
variant receive_call (api_id_type api_id, const string &method_name, const variants &args=variants()) const
variant receive_callback (uint64_t callback_id, const variants &args=variants()) const
void receive_notice (uint64_t callback_id, const variants &args=variants()) const
template<typename Interface >
api_id_type register_api (const Interface &a)
template<typename Signature >
uint64_t register_callback (const std::function< Signature > &cb)
std::vector< std::string > get_method_names (api_id_type local_api_id=0) const

Public Attributes

std::shared_ptr< fc::api_connection_remote_connection
- Public Attributes inherited from fc::api_connection
fc::signal< void()> closed
const uint32_t _max_conversion_depth

Detailed Description

Definition at line 379 of file api_connection.hpp.

Constructor & Destructor Documentation

◆ local_api_connection()

fc::local_api_connection::local_api_connection ( uint32_t  max_depth)

Definition at line 382 of file api_connection.hpp.

◆ ~local_api_connection()

fc::local_api_connection::~local_api_connection ( )

Definition at line 383 of file api_connection.hpp.

Member Function Documentation

◆ remote_connection()

const std::shared_ptr<fc::api_connection>& fc::local_api_connection::remote_connection ( ) const

Definition at line 409 of file api_connection.hpp.

◆ send_call()

virtual variant fc::local_api_connection::send_call ( api_id_type  api_id,
string  method_name,
variants  args = variants() 

makes calls to the remote server

Implements fc::api_connection.

Definition at line 386 of file api_connection.hpp.

◆ send_callback()

virtual variant fc::local_api_connection::send_callback ( uint64_t  callback_id,
variants  args = variants() 

Implements fc::api_connection.

Definition at line 391 of file api_connection.hpp.

◆ send_notice()

virtual void fc::local_api_connection::send_notice ( uint64_t  callback_id,
variants  args = variants() 

Implements fc::api_connection.

Definition at line 396 of file api_connection.hpp.

◆ set_remote_connection()

void fc::local_api_connection::set_remote_connection ( const std::shared_ptr< fc::api_connection > &  rc)

Definition at line 403 of file api_connection.hpp.

Member Data Documentation

◆ _remote_connection

std::shared_ptr<fc::api_connection> fc::local_api_connection::_remote_connection

Definition at line 411 of file api_connection.hpp.

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