|
Electroneum
|
#include <levin_protocol_handler_async.h>
Public Types | |
| typedef t_connection_context | connection_context |
Public Member Functions | |
| int | invoke (int command, const epee::span< const uint8_t > in_buff, std::string &buff_out, boost::uuids::uuid connection_id) |
| template<class callback_t > | |
| int | invoke_async (int command, const epee::span< const uint8_t > in_buff, boost::uuids::uuid connection_id, const callback_t &cb, size_t timeout=LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED) |
| int | notify (int command, const epee::span< const uint8_t > in_buff, boost::uuids::uuid connection_id) |
| bool | close (boost::uuids::uuid connection_id) |
| bool | update_connection_context (const t_connection_context &contxt) |
| bool | request_callback (boost::uuids::uuid connection_id) |
| template<class callback_t > | |
| bool | foreach_connection (const callback_t &cb) |
| template<class callback_t > | |
| bool | for_connection (const boost::uuids::uuid &connection_id, const callback_t &cb) |
| size_t | get_connections_count () |
| void | set_handler (levin_commands_handler< t_connection_context > *handler, void(*destroy)(levin_commands_handler< t_connection_context > *)=NULL) |
| async_protocol_handler_config () | |
| ~async_protocol_handler_config () | |
| void | del_out_connections (size_t count) |
| void | del_in_connections (size_t count) |
Public Attributes | |
| uint64_t | m_max_packet_size |
| uint64_t | m_invoke_timeout |
Friends | |
| class | async_protocol_handler< t_connection_context > |
Definition at line 65 of file levin_protocol_handler_async.h.
| typedef t_connection_context epee::levin::async_protocol_handler_config< t_connection_context >::connection_context |
Definition at line 85 of file levin_protocol_handler_async.h.
|
inline |
Definition at line 104 of file levin_protocol_handler_async.h.
|
inline |
Definition at line 106 of file levin_protocol_handler_async.h.

| bool epee::levin::async_protocol_handler_config< t_connection_context >::close | ( | boost::uuids::uuid | connection_id | ) |
Definition at line 902 of file levin_protocol_handler_async.h.
| void epee::levin::async_protocol_handler_config< t_connection_context >::del_in_connections | ( | size_t | count | ) |
Definition at line 803 of file levin_protocol_handler_async.h.

| void epee::levin::async_protocol_handler_config< t_connection_context >::del_out_connections | ( | size_t | count | ) |
Definition at line 797 of file levin_protocol_handler_async.h.

| bool epee::levin::async_protocol_handler_config< t_connection_context >::for_connection | ( | const boost::uuids::uuid & | connection_id, |
| const callback_t & | cb | ||
| ) |
Definition at line 866 of file levin_protocol_handler_async.h.
| bool epee::levin::async_protocol_handler_config< t_connection_context >::foreach_connection | ( | const callback_t & | cb | ) |
Definition at line 853 of file levin_protocol_handler_async.h.
| size_t epee::levin::async_protocol_handler_config< t_connection_context >::get_connections_count | ( | ) |
Definition at line 878 of file levin_protocol_handler_async.h.
| int epee::levin::async_protocol_handler_config< t_connection_context >::invoke | ( | int | command, |
| const epee::span< const uint8_t > | in_buff, | ||
| std::string & | buff_out, | ||
| boost::uuids::uuid | connection_id | ||
| ) |
Definition at line 837 of file levin_protocol_handler_async.h.
| int epee::levin::async_protocol_handler_config< t_connection_context >::invoke_async | ( | int | command, |
| const epee::span< const uint8_t > | in_buff, | ||
| boost::uuids::uuid | connection_id, | ||
| const callback_t & | cb, | ||
| size_t | timeout = LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED |
||
| ) |
Definition at line 845 of file levin_protocol_handler_async.h.
| int epee::levin::async_protocol_handler_config< t_connection_context >::notify | ( | int | command, |
| const epee::span< const uint8_t > | in_buff, | ||
| boost::uuids::uuid | connection_id | ||
| ) |
Definition at line 894 of file levin_protocol_handler_async.h.
| bool epee::levin::async_protocol_handler_config< t_connection_context >::request_callback | ( | boost::uuids::uuid | connection_id | ) |
Definition at line 921 of file levin_protocol_handler_async.h.
| void epee::levin::async_protocol_handler_config< t_connection_context >::set_handler | ( | levin_commands_handler< t_connection_context > * | handler, |
| void(*)(levin_commands_handler< t_connection_context > *) | destroy = NULL |
||
| ) |
Definition at line 885 of file levin_protocol_handler_async.h.

| bool epee::levin::async_protocol_handler_config< t_connection_context >::update_connection_context | ( | const t_connection_context & | contxt | ) |
Definition at line 910 of file levin_protocol_handler_async.h.
|
friend |
Definition at line 77 of file levin_protocol_handler_async.h.
| uint64_t epee::levin::async_protocol_handler_config< t_connection_context >::m_invoke_timeout |
Definition at line 87 of file levin_protocol_handler_async.h.
| uint64_t epee::levin::async_protocol_handler_config< t_connection_context >::m_max_packet_size |
Definition at line 86 of file levin_protocol_handler_async.h.