|
Electroneum
|
#include <levin_protocol_handler_async.h>

Classes | |
| struct | anvoke_handler |
| struct | invoke_response_handler_base |
Public Types | |
| enum | stream_state { stream_state_head, stream_state_body } |
| typedef t_connection_context | connection_context |
| typedef async_protocol_handler_config< t_connection_context > | config_type |
Public Member Functions | |
| template<class callback_t > | |
| bool | add_invoke_response_handler (const callback_t &cb, uint64_t timeout, async_protocol_handler &con, int command) |
| async_protocol_handler (net_utils::i_service_endpoint *psnd_hndlr, config_type &config, t_connection_context &conn_context) | |
| virtual | ~async_protocol_handler () |
| bool | start_outer_call () |
| bool | finish_outer_call () |
| bool | release_protocol () |
| bool | close () |
| void | update_connection_context (const connection_context &contxt) |
| void | request_callback () |
| void | handle_qued_callback () |
| virtual bool | handle_recv (const void *ptr, size_t cb) |
| bool | after_init_connection () |
| template<class callback_t > | |
| bool | async_invoke (int command, const epee::span< const uint8_t > in_buff, const callback_t &cb, size_t timeout=LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED) |
| int | invoke (int command, const epee::span< const uint8_t > in_buff, std::string &buff_out) |
| int | notify (int command, const epee::span< const uint8_t > in_buff) |
| boost::uuids::uuid | get_connection_id () |
| t_connection_context & | get_context_ref () |
Public Attributes | |
| std::atomic< bool > | m_deletion_initiated |
| std::atomic< bool > | m_protocol_released |
| volatile uint32_t | m_invoke_buf_ready |
| volatile int | m_invoke_result_code |
| critical_section | m_local_inv_buff_lock |
| std::string | m_local_inv_buff |
| critical_section | m_send_lock |
| critical_section | m_call_lock |
| volatile uint32_t | m_wait_count |
| volatile uint32_t | m_close_called |
| bucket_head2 | m_current_head |
| net_utils::i_service_endpoint * | m_pservice_endpoint |
| config_type & | m_config |
| t_connection_context & | m_connection_context |
| net_utils::buffer | m_cache_in_buffer |
| stream_state | m_state |
| int32_t | m_oponent_protocol_ver |
| bool | m_connection_initialized |
| critical_section | m_invoke_response_handlers_lock |
| std::list< boost::shared_ptr< invoke_response_handler_base > > | m_invoke_response_handlers |
Friends | |
| template<class callback_t > | |
| struct | anvoke_handler |
Definition at line 62 of file levin_protocol_handler_async.h.
| typedef async_protocol_handler_config<t_connection_context> epee::levin::async_protocol_handler< t_connection_context >::config_type |
Definition at line 120 of file levin_protocol_handler_async.h.
| typedef t_connection_context epee::levin::async_protocol_handler< t_connection_context >::connection_context |
Definition at line 119 of file levin_protocol_handler_async.h.
| enum epee::levin::async_protocol_handler::stream_state |
| Enumerator | |
|---|---|
| stream_state_head | |
| stream_state_body | |
Definition at line 122 of file levin_protocol_handler_async.h.
|
inline |
Definition at line 262 of file levin_protocol_handler_async.h.
|
inlinevirtual |
Definition at line 281 of file levin_protocol_handler_async.h.

|
inline |
Definition at line 253 of file levin_protocol_handler_async.h.

|
inline |
Definition at line 549 of file levin_protocol_handler_async.h.
|
inline |
Definition at line 560 of file levin_protocol_handler_async.h.

|
inline |
Definition at line 340 of file levin_protocol_handler_async.h.


|
inline |
Definition at line 315 of file levin_protocol_handler_async.h.


|
inline |
Definition at line 747 of file levin_protocol_handler_async.h.
|
inline |
Definition at line 749 of file levin_protocol_handler_async.h.

|
inline |
Definition at line 361 of file levin_protocol_handler_async.h.
|
inlinevirtual |
Definition at line 366 of file levin_protocol_handler_async.h.

|
inline |
Definition at line 630 of file levin_protocol_handler_async.h.

|
inline |
Definition at line 704 of file levin_protocol_handler_async.h.

|
inline |
Definition at line 323 of file levin_protocol_handler_async.h.
|
inline |
Definition at line 353 of file levin_protocol_handler_async.h.

|
inline |
Definition at line 304 of file levin_protocol_handler_async.h.


|
inline |
Definition at line 348 of file levin_protocol_handler_async.h.
|
friend |
Definition at line 260 of file levin_protocol_handler_async.h.
| net_utils::buffer epee::levin::async_protocol_handler< t_connection_context >::m_cache_in_buffer |
Definition at line 147 of file levin_protocol_handler_async.h.
| critical_section epee::levin::async_protocol_handler< t_connection_context >::m_call_lock |
Definition at line 138 of file levin_protocol_handler_async.h.
| volatile uint32_t epee::levin::async_protocol_handler< t_connection_context >::m_close_called |
Definition at line 141 of file levin_protocol_handler_async.h.
| config_type& epee::levin::async_protocol_handler< t_connection_context >::m_config |
Definition at line 144 of file levin_protocol_handler_async.h.
| t_connection_context& epee::levin::async_protocol_handler< t_connection_context >::m_connection_context |
Definition at line 145 of file levin_protocol_handler_async.h.
| bool epee::levin::async_protocol_handler< t_connection_context >::m_connection_initialized |
Definition at line 151 of file levin_protocol_handler_async.h.
| bucket_head2 epee::levin::async_protocol_handler< t_connection_context >::m_current_head |
Definition at line 142 of file levin_protocol_handler_async.h.
| std::atomic<bool> epee::levin::async_protocol_handler< t_connection_context >::m_deletion_initiated |
Definition at line 128 of file levin_protocol_handler_async.h.
| volatile uint32_t epee::levin::async_protocol_handler< t_connection_context >::m_invoke_buf_ready |
Definition at line 130 of file levin_protocol_handler_async.h.
| std::list<boost::shared_ptr<invoke_response_handler_base> > epee::levin::async_protocol_handler< t_connection_context >::m_invoke_response_handlers |
Definition at line 250 of file levin_protocol_handler_async.h.
| critical_section epee::levin::async_protocol_handler< t_connection_context >::m_invoke_response_handlers_lock |
Definition at line 249 of file levin_protocol_handler_async.h.
| volatile int epee::levin::async_protocol_handler< t_connection_context >::m_invoke_result_code |
Definition at line 132 of file levin_protocol_handler_async.h.
| std::string epee::levin::async_protocol_handler< t_connection_context >::m_local_inv_buff |
Definition at line 135 of file levin_protocol_handler_async.h.
| critical_section epee::levin::async_protocol_handler< t_connection_context >::m_local_inv_buff_lock |
Definition at line 134 of file levin_protocol_handler_async.h.
| int32_t epee::levin::async_protocol_handler< t_connection_context >::m_oponent_protocol_ver |
Definition at line 150 of file levin_protocol_handler_async.h.
| std::atomic<bool> epee::levin::async_protocol_handler< t_connection_context >::m_protocol_released |
Definition at line 129 of file levin_protocol_handler_async.h.
| net_utils::i_service_endpoint* epee::levin::async_protocol_handler< t_connection_context >::m_pservice_endpoint |
Definition at line 143 of file levin_protocol_handler_async.h.
| critical_section epee::levin::async_protocol_handler< t_connection_context >::m_send_lock |
Definition at line 137 of file levin_protocol_handler_async.h.
| stream_state epee::levin::async_protocol_handler< t_connection_context >::m_state |
Definition at line 148 of file levin_protocol_handler_async.h.
| volatile uint32_t epee::levin::async_protocol_handler< t_connection_context >::m_wait_count |
Definition at line 140 of file levin_protocol_handler_async.h.