Monero
Loading...
Searching...
No Matches
abstract_tcp_server2.inl File Reference

the connection templated-class for one peer connection More...

#include <boost/asio/post.hpp>
#include <boost/foreach.hpp>
#include <boost/uuid/random_generator.hpp>
#include <boost/chrono.hpp>
#include <boost/utility/value_init.hpp>
#include <boost/asio/bind_executor.hpp>
#include <boost/asio/deadline_timer.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/thread/condition_variable.hpp>
#include <boost/make_shared.hpp>
#include <boost/thread.hpp>
#include "warnings.h"
#include "string_tools_lexical.h"
#include "misc_language.h"
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <random>
Include dependency graph for abstract_tcp_server2.inl:
This graph shows which files directly or indirectly include this file:

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 AGGRESSIVE_TIMEOUT_THRESHOLD   120
#define NEW_CONNECTION_TIMEOUT_LOCAL   1200000
#define NEW_CONNECTION_TIMEOUT_REMOTE   10000
#define DEFAULT_TIMEOUT_MS_LOCAL   1800000
#define DEFAULT_TIMEOUT_MS_REMOTE   300000
#define TIMEOUT_EXTRA_MS_PER_BYTE   0.2

Functions

template<typename T>
Tepee::net_utils::check_and_get (std::shared_ptr< T > &ptr)
 epee::net_utils::catch (const std::exception &e)
 epee::net_utils::catch (...)

Detailed Description

the connection templated-class for one peer connection

Author
from CrypoNote (see copyright below; Andrey N. Sabelnikov) @monero rfree

Macro Definition Documentation

◆ AGGRESSIVE_TIMEOUT_THRESHOLD

#define AGGRESSIVE_TIMEOUT_THRESHOLD   120

◆ DEFAULT_TIMEOUT_MS_LOCAL

#define DEFAULT_TIMEOUT_MS_LOCAL   1800000

◆ DEFAULT_TIMEOUT_MS_REMOTE

#define DEFAULT_TIMEOUT_MS_REMOTE   300000

◆ MONERO_DEFAULT_LOG_CATEGORY

#define MONERO_DEFAULT_LOG_CATEGORY   "net"

◆ NEW_CONNECTION_TIMEOUT_LOCAL

#define NEW_CONNECTION_TIMEOUT_LOCAL   1200000

◆ NEW_CONNECTION_TIMEOUT_REMOTE

#define NEW_CONNECTION_TIMEOUT_REMOTE   10000

◆ TIMEOUT_EXTRA_MS_PER_BYTE

#define TIMEOUT_EXTRA_MS_PER_BYTE   0.2