34#include <boost/asio/io_context.hpp>
35#include <boost/asio/ip/tcp.hpp>
36#include <boost/thread.hpp>
37#include <boost/optional/optional_fwd.hpp>
38#include <boost/program_options/options_description.hpp>
39#include <boost/program_options/variables_map.hpp>
40#include <boost/uuid/uuid.hpp>
99 boost::optional<std::vector<proxy>>
get_proxies(
const boost::program_options::variables_map&
vm);
100 boost::optional<std::vector<anonymous_inbound>>
get_anonymous_inbounds(
const boost::program_options::variables_map&
vm);
106 boost::optional<boost::asio::ip::tcp::socket>
110 template<
class base_type>
127 template<
class t_payload_net_handler>
129 public i_p2p_endpoint<typename t_payload_net_handler::connection_context>,
141 static_assert(p2p_connection_context::handshake_command() ==
COMMAND_HANDSHAKE::ID,
"invalid handshake command id");
232 m_config.m_net_config.config_id = 0;
266 static void init_options(boost::program_options::options_description& desc);
270 bool init(
const boost::program_options::variables_map&
vm,
const std::string&
proxy = {},
bool proxy_dns_leaks_allowed = {});
306 {
"seeds.moneroseeds.se"
307 ,
"seeds.moneroseeds.ae.org"
308 ,
"seeds.moneroseeds.ch"
309 ,
"seeds.moneroseeds.li"
363 const boost::program_options::variables_map&
vm
393 template<
class t_callback>
405 template <
class Container>
408 template <
class Container>
430 _info(
"Killing the net_node");
434 _info(
"Joined extra background net_node threads");
the connection templated-class for one peer connection
Provides tx notification privacy.
Definition levin_notify.h:70
Provides space for levin (p2p) header, so that payload can be sent without copy.
Definition levin_base.h:132
Definition math_helper.h:297
Definition abstract_tcp_server2.h:347
Definition net_utils_base.h:125
Definition net_utils_base.h:225
#define P2P_DEFAULT_PACKET_MAX_SIZE
Definition cryptonote_config.h:141
#define P2P_DEFAULT_LIMIT_RATE_DOWN
Definition cryptonote_config.h:153
#define P2P_IP_BLOCKTIME
Definition cryptonote_config.h:156
#define P2P_DEFAULT_PEERS_IN_HANDSHAKE
Definition cryptonote_config.h:142
#define CRYPTONOTE_PRUNING_LOG_STRIPES
Definition cryptonote_config.h:207
#define P2P_DEFAULT_CONNECTION_TIMEOUT
Definition cryptonote_config.h:144
#define P2P_DEFAULT_LIMIT_RATE_UP
Definition cryptonote_config.h:152
#define P2P_DEFAULT_PING_CONNECTION_TIMEOUT
Definition cryptonote_config.h:146
#define P2P_DEFAULT_HANDSHAKE_INTERVAL
Definition cryptonote_config.h:140
#define END_INVOKE_MAP2()
Definition levin_abstract_invoke2.h:285
#define CHAIN_INVOKE_MAP_TO_OBJ_FORCE_CONTEXT(obj, context_type)
Definition levin_abstract_invoke2.h:278
#define BEGIN_INVOKE_MAP2(owner_type)
Definition levin_abstract_invoke2.h:240
#define HANDLE_INVOKE_T2(COMMAND, func)
Definition levin_abstract_invoke2.h:250
#define LEVIN_ERROR_CONNECTION_HANDLER_NOT_DEFINED
Definition levin_base.h:108
uint32_t address
Definition getifaddr.c:269
Definition cryptonote_config.h:221
network_type
Definition cryptonote_config.h:302
relay_method
Methods tracking how a tx was received and relayed.
Definition enums.h:37
zone
Definition enums.h:50
ssl_support_t
Definition net_ssl.h:49
TODO: (mj-xmr) This will be reduced in an another PR.
Definition byte_slice.h:40
const CharType(& source)[N]
Definition pointer.h:1147
unsigned short uint16_t
Definition stdint.h:125
signed __int64 int64_t
Definition stdint.h:135
unsigned int uint32_t
Definition stdint.h:126
unsigned __int64 uint64_t
Definition stdint.h:136
Definition command_line.h:53
Definition levin_base.h:91
Definition misc_language.h:104
Definition net_utils_base.h:367
Definition abstract_tcp_server2.h:76
Definition abstract_tcp_server2.h:83
Definition net_node.h:112
uint32_t support_flags
Definition net_node.h:121
bool is_ping
Definition net_node.h:123
peerid_type peer_id
Definition net_node.h:120
std::set< epee::net_utils::network_address > sent_addresses
Definition net_node.h:124
bool m_in_timedsync
Definition net_node.h:122
p2p_connection_context_t(bool is_ping=false)
Definition net_node.h:113
Definition minissdpd.c:83
#define CRITICAL_REGION_LOCAL(x)
Definition syncobj.h:153
randomx_vm * vm
Definition tests.cpp:20
#define DISABLE_VS_WARNINGS(w)
Definition warnings.h:18
#define POP_WARNINGS
Definition warnings.h:17
#define PUSH_WARNINGS
Definition warnings.h:16