|
Monero
|
#include "portable_storage_template_helper.h"#include <boost/utility/string_ref.hpp>#include <boost/utility/value_init.hpp>#include <functional>#include "byte_slice.h"#include "span.h"#include "net/levin_base.h"

Go to the source code of this file.
Namespaces | |
| namespace | epee |
| TODO: (mj-xmr) This will be reduced in an another PR. | |
| namespace | epee::net_utils |
Macros | |
| #define | MONERO_DEFAULT_LOG_CATEGORY "net" |
| #define | CHAIN_LEVIN_INVOKE_MAP2(context_type) |
| #define | CHAIN_LEVIN_NOTIFY_MAP2(context_type) |
| #define | CHAIN_LEVIN_INVOKE_MAP() |
| #define | CHAIN_LEVIN_NOTIFY_MAP() |
| #define | CHAIN_LEVIN_NOTIFY_STUB() |
| #define | BEGIN_INVOKE_MAP2(owner_type) |
| #define | HANDLE_INVOKE2(command_id, func, type_name_in, typename_out) |
| #define | HANDLE_INVOKE_T2(COMMAND, func) |
| #define | HANDLE_NOTIFY2(command_id, func, type_name_in) |
| #define | HANDLE_NOTIFY_T2(NOTIFY, func) |
| #define | CHAIN_INVOKE_MAP2(func) |
| #define | CHAIN_INVOKE_MAP_TO_OBJ2(obj) |
| #define | CHAIN_INVOKE_MAP_TO_OBJ_FORCE_CONTEXT(obj, context_type) |
| #define | END_INVOKE_MAP2() |
Functions | |
| template<typename context_t> | |
| void | on_levin_traffic (const context_t &context, bool initiator, bool sent, bool error, size_t bytes, const char *category) |
| template<typename context_t> | |
| void | on_levin_traffic (const context_t &context, bool initiator, bool sent, bool error, size_t bytes, int command) |
| template<class t_arg, class t_result, class t_transport> | |
| bool | epee::net_utils::invoke_remote_command2 (const epee::net_utils::connection_context_base context, int command, const t_arg &out_struct, t_result &result_struct, t_transport &transport) |
| template<class t_result, class t_arg, class callback_t, class t_transport> | |
| bool | epee::net_utils::async_invoke_remote_command2 (const epee::net_utils::connection_context_base &context, int command, const t_arg &out_struct, t_transport &transport, const callback_t &cb, size_t inv_timeout=LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED) |
| template<class t_arg, class t_transport> | |
| bool | epee::net_utils::notify_remote_command2 (const typename t_transport::connection_context &context, int command, const t_arg &out_struct, t_transport &transport) |
| template<class t_owner, class t_in_type, class t_out_type, class t_context, class callback_t> | |
| int | epee::net_utils::buff_to_t_adapter (int command, const epee::span< const uint8_t > in_buff, byte_stream &buff_out, callback_t cb, t_context &context) |
| template<class t_owner, class t_in_type, class t_context, class callback_t> | |
| int | epee::net_utils::buff_to_t_adapter (t_owner *powner, int command, const epee::span< const uint8_t > in_buff, callback_t cb, t_context &context) |
| #define BEGIN_INVOKE_MAP2 | ( | owner_type | ) |
| #define CHAIN_INVOKE_MAP2 | ( | func | ) |
| #define CHAIN_INVOKE_MAP_TO_OBJ2 | ( | obj | ) |
| #define CHAIN_INVOKE_MAP_TO_OBJ_FORCE_CONTEXT | ( | obj, | |
| context_type ) |
| #define CHAIN_LEVIN_INVOKE_MAP | ( | ) |
| #define CHAIN_LEVIN_INVOKE_MAP2 | ( | context_type | ) |
| #define CHAIN_LEVIN_NOTIFY_MAP | ( | ) |
| #define CHAIN_LEVIN_NOTIFY_MAP2 | ( | context_type | ) |
| #define CHAIN_LEVIN_NOTIFY_STUB | ( | ) |
| #define END_INVOKE_MAP2 | ( | ) |
| #define HANDLE_INVOKE2 | ( | command_id, | |
| func, | |||
| type_name_in, | |||
| typename_out ) |
| #define HANDLE_INVOKE_T2 | ( | COMMAND, | |
| func ) |
| #define HANDLE_NOTIFY2 | ( | command_id, | |
| func, | |||
| type_name_in ) |
| #define HANDLE_NOTIFY_T2 | ( | NOTIFY, | |
| func ) |
| #define MONERO_DEFAULT_LOG_CATEGORY "net" |
| void on_levin_traffic | ( | const context_t & | context, |
| bool | initiator, | ||
| bool | sent, | ||
| bool | error, | ||
| size_t | bytes, | ||
| const char * | category ) |
| void on_levin_traffic | ( | const context_t & | context, |
| bool | initiator, | ||
| bool | sent, | ||
| bool | error, | ||
| size_t | bytes, | ||
| int | command ) |