Monero
Loading...
Searching...
No Matches
levin_protocol_handler_async.h File Reference
#include <boost/asio/deadline_timer.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/unordered_map.hpp>
#include <boost/smart_ptr/make_shared.hpp>
#include <atomic>
#include <deque>
#include "levin_base.h"
#include "buffer.h"
#include "misc_language.h"
#include "syncobj.h"
#include "time_helper.h"
#include "int-util.h"
#include <random>
#include <chrono>
Include dependency graph for levin_protocol_handler_async.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  epee::levin::async_protocol_handler_config< t_connection_context >
class  epee::levin::async_protocol_handler< t_connection_context >
struct  epee::levin::async_protocol_handler< t_connection_context >::invoke_response_handler_base
struct  epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >

Namespaces

namespace  epee
 TODO: (mj-xmr) This will be reduced in an another PR.
namespace  epee::levin

Macros

#define MONERO_DEFAULT_LOG_CATEGORY   "net"
#define MIN_BYTES_WANTED   512

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)

Macro Definition Documentation

◆ MIN_BYTES_WANTED

#define MIN_BYTES_WANTED   512

◆ MONERO_DEFAULT_LOG_CATEGORY

#define MONERO_DEFAULT_LOG_CATEGORY   "net"

Function Documentation

◆ on_levin_traffic() [1/2]

template<typename context_t>
void on_levin_traffic ( const context_t & context,
bool initiator,
bool sent,
bool error,
size_t bytes,
const char * category )

◆ on_levin_traffic() [2/2]

template<typename context_t>
void on_levin_traffic ( const context_t & context,
bool initiator,
bool sent,
bool error,
size_t bytes,
int command )