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

#include <binary_api_connection.hpp>

Inheritance diagram for fc::local_binary_api_connection:
Collaboration diagram for fc::local_binary_api_connection:

Public Member Functions

virtual result_type send_call (api_id_type api_id, string method_name, params_type args=params_type()) override
 
virtual result_type send_callback (uint64_t callback_id, params_type args=params_type()) override
 
virtual void send_notice (uint64_t callback_id, params_type args=params_type()) override
 
void set_remote_connection (const std::shared_ptr< fc::binary_api_connection > &rc)
 
const std::shared_ptr< fc::binary_api_connection > & remote_connection () const
 
- Public Member Functions inherited from fc::binary_api_connection
 binary_api_connection ()
 
virtual ~binary_api_connection ()
 
template<typename T >
api< Tget_remote_api (api_id_type api_id=0)
 
result_type receive_call (api_id_type api_id, const string &method_name, const params_type &args=params_type()) const
 
result_type receive_callback (uint64_t callback_id, const params_type &args=params_type()) const
 
void receive_notice (uint64_t callback_id, const params_type &args=params_type()) 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::binary_api_connection_remote_connection
 
- Public Attributes inherited from fc::binary_api_connection
fc::signal< void()> closed
 

Additional Inherited Members

- Public Types inherited from fc::binary_api_connection
typedef std::vector< char > params_type
 
typedef std::vector< char > result_type
 

Detailed Description

Definition at line 346 of file binary_api_connection.hpp.

Member Function Documentation

◆ remote_connection()

const std::shared_ptr< fc::binary_api_connection > & fc::local_binary_api_connection::remote_connection ( ) const
inline

Definition at line 373 of file binary_api_connection.hpp.

373{ return _remote_connection; }
std::shared_ptr< fc::binary_api_connection > _remote_connection

◆ send_call()

virtual result_type fc::local_binary_api_connection::send_call ( api_id_type api_id,
string method_name,
params_type args = params_type() )
inlineoverridevirtual

makes calls to the remote server

Implements fc::binary_api_connection.

Definition at line 350 of file binary_api_connection.hpp.

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

◆ send_callback()

virtual result_type fc::local_binary_api_connection::send_callback ( uint64_t callback_id,
params_type args = params_type() )
inlineoverridevirtual

Implements fc::binary_api_connection.

Definition at line 355 of file binary_api_connection.hpp.

356 {
358 return _remote_connection->receive_callback( callback_id, args );
359 }

◆ send_notice()

virtual void fc::local_binary_api_connection::send_notice ( uint64_t callback_id,
params_type args = params_type() )
inlineoverridevirtual

Implements fc::binary_api_connection.

Definition at line 360 of file binary_api_connection.hpp.

361 {
363 _remote_connection->receive_notice( callback_id, args );
364 }

◆ set_remote_connection()

void fc::local_binary_api_connection::set_remote_connection ( const std::shared_ptr< fc::binary_api_connection > & rc)
inline

Definition at line 367 of file binary_api_connection.hpp.

368 {
370 FC_ASSERT( rc != this->shared_from_this() );
372 }
yh_rc rc

Member Data Documentation

◆ _remote_connection

std::shared_ptr<fc::binary_api_connection> fc::local_binary_api_connection::_remote_connection

Definition at line 375 of file binary_api_connection.hpp.


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