#include <binary_api_connection.hpp>
Definition at line 209 of file binary_api_connection.hpp.
◆ params_type
◆ result_type
◆ binary_api_connection()
fc::binary_api_connection::binary_api_connection |
( |
| ) |
|
|
inline |
◆ ~binary_api_connection()
virtual fc::binary_api_connection::~binary_api_connection |
( |
| ) |
|
|
inlinevirtual |
◆ get_method_names()
std::vector< std::string > fc::binary_api_connection::get_method_names |
( |
api_id_type | local_api_id = 0 | ) |
const |
|
inline |
◆ get_remote_api()
api< T > fc::binary_api_connection::get_remote_api |
( |
api_id_type | api_id = 0 | ) |
|
|
inline |
Definition at line 220 of file binary_api_connection.hpp.
221 {
222 api<T> result;
223 result->visit( api_visitor( api_id, this->shared_from_this() ) );
224 return result;
225 }
◆ receive_call()
Definition at line 232 of file binary_api_connection.hpp.
233 {
234 FC_ASSERT( _local_apis.size() > api_id );
235 return _local_apis[api_id]->call( method_name, args );
236 }
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
◆ receive_callback()
◆ receive_notice()
◆ register_api()
Definition at line 249 of file binary_api_connection.hpp.
250 {
251 auto handle =
a.get_handle();
252 auto itr = _handle_to_id.find(handle);
253 if( itr != _handle_to_id.end() ) return itr->second;
254
255 _local_apis.push_back( std::unique_ptr<generic_api>(
new generic_api(
a, shared_from_this() ) ) );
256 _handle_to_id[handle] = _local_apis.size() - 1;
257 return _local_apis.size() - 1;
258 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
◆ register_callback()
template<typename Signature >
uint64_t fc::binary_api_connection::register_callback |
( |
const std::function< Signature > & | cb | ) |
|
|
inline |
Definition at line 261 of file binary_api_connection.hpp.
262 {
264 return _local_callbacks.size() - 1;
265 }
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::binary_api_connection::closed |
The documentation for this class was generated from the following file: