#include <api_connection.hpp>
Definition at line 205 of file api_connection.hpp.
 
◆ api_connection()
  
  | 
        
          | fc::api_connection::api_connection | ( |  | ) |  |  | inline | 
 
 
◆ ~api_connection()
  
  | 
        
          | virtual fc::api_connection::~api_connection | ( |  | ) |  |  | inlinevirtual | 
 
 
◆ get_method_names()
  
  | 
        
          | std::vector< std::string > fc::api_connection::get_method_names | ( | api_id_type | local_api_id = 0 | ) | const |  | inline | 
 
Definition at line 260 of file api_connection.hpp.
  260{ return _local_apis[local_api_id]->get_method_names(); }
 
 
◆ get_remote_api()
Definition at line 213 of file api_connection.hpp.
  214         {
  215            api<T> result;
  216            result->visit( api_visitor(  api_id, this->shared_from_this() ) );
  217            return result;
  218         }
 
 
◆ receive_call()
Definition at line 225 of file api_connection.hpp.
  226         {
  227            FC_ASSERT( _local_apis.size() > api_id );
 
  228            return _local_apis[api_id]->call( method_name, args );
  229         }
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
 
 
◆ receive_callback()
Definition at line 230 of file api_connection.hpp.
  231         {
  232            FC_ASSERT( _local_callbacks.size() > callback_id );
 
  233            return _local_callbacks[callback_id]( args );
  234         }
 
 
◆ receive_notice()
Definition at line 235 of file api_connection.hpp.
  236         {
  237            FC_ASSERT( _local_callbacks.size() > callback_id );
 
  238            _local_callbacks[callback_id]( args );
  239         }
 
 
◆ register_api()
Definition at line 242 of file api_connection.hpp.
  243         {
  244            auto handle = 
a.get_handle();
 
  245            auto itr = _handle_to_id.find(handle);
  246            if( itr != _handle_to_id.end() ) return itr->second;
  247 
  248            _local_apis.push_back( std::unique_ptr<generic_api>( 
new generic_api(
a, shared_from_this() ) ) );
 
  249            _handle_to_id[handle] = _local_apis.size() - 1;
  250            return _local_apis.size() - 1;
  251         }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
 
 
◆ register_callback()
template<typename Signature > 
  
  | 
        
          | uint64_t fc::api_connection::register_callback | ( | const std::function< Signature > & | cb | ) |  |  | inline | 
 
Definition at line 254 of file api_connection.hpp.
  255         {
  257            return _local_callbacks.size() - 1;
  258         }
std::function< variant(const fc::variants &)> to_generic(const std::function< R(Args...)> &f)
 
 
◆ send_call()
◆ send_callback()
◆ send_notice()
◆ closed
      
        
          | fc::signal<void()> fc::api_connection::closed | 
      
 
 
The documentation for this class was generated from the following file: