Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::local_api_connection Class Reference

#include <api_connection.hpp>

Inheritance diagram for fc::local_api_connection:
Collaboration diagram for fc::local_api_connection:

Public Member Functions

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 ()
 
virtual ~api_connection ()
 
template<typename T >
api< Tget_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
 

Detailed Description

Definition at line 339 of file api_connection.hpp.

Member Function Documentation

◆ remote_connection()

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

Definition at line 366 of file api_connection.hpp.

366{ return _remote_connection; }
std::shared_ptr< fc::api_connection > _remote_connection

◆ send_call()

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

makes calls to the remote server

Implements fc::api_connection.

Definition at line 343 of file api_connection.hpp.

344 {
346 return _remote_connection->receive_call( api_id, method_name, std::move(args) );
347 }
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.

◆ send_callback()

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

Implements fc::api_connection.

Definition at line 348 of file api_connection.hpp.

349 {
351 return _remote_connection->receive_callback( callback_id, args );
352 }

◆ send_notice()

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

Implements fc::api_connection.

Definition at line 353 of file api_connection.hpp.

354 {
356 _remote_connection->receive_notice( callback_id, args );
357 }

◆ set_remote_connection()

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

Definition at line 360 of file api_connection.hpp.

361 {
363 FC_ASSERT( rc != this->shared_from_this() );
365 }
yh_rc rc

Member Data Documentation

◆ _remote_connection

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

Definition at line 368 of file api_connection.hpp.


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