Monero
Loading...
Searching...
No Matches
net_node.inl File Reference
#include <algorithm>
#include <boost/bind/bind.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/optional/optional.hpp>
#include <boost/thread/thread.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/algorithm/string.hpp>
#include <atomic>
#include <functional>
#include <limits>
#include <memory>
#include <tuple>
#include <vector>
#include "version.h"
#include "string_tools.h"
#include "common/util.h"
#include "common/dns_utils.h"
#include "common/pruning.h"
#include "net/error.h"
#include "net/net_helper.h"
#include "math_helper.h"
#include "misc_log_ex.h"
#include "p2p_protocol_defs.h"
#include "crypto/crypto.h"
#include "storages/levin_abstract_invoke2.h"
#include "cryptonote_core/cryptonote_core.h"
#include "net/parse.h"
#include <miniupnp/miniupnpc/miniupnpc.h>
#include <miniupnp/miniupnpc/upnpcommands.h>
#include <miniupnp/miniupnpc/upnperrors.h>
Include dependency graph for net_node.inl:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  nodetool

Macros

#define MONERO_DEFAULT_LOG_CATEGORY   "net.p2p"
#define NET_MAKE_IP(b1, b2, b3, b4)
#define MIN_WANTED_SEED_NODES   12
#define LOG_PRINT_CC_PRIORITY_NODE(priority, con, msg)

Functions

static boost::asio::ip::address_v4 make_address_v4_from_v6 (const boost::asio::ip::address_v6 &a)
bool nodetool::append_net_address (std::vector< epee::net_utils::network_address > &seed_nodes, std::string const &addr, uint16_t default_port)

Macro Definition Documentation

◆ LOG_PRINT_CC_PRIORITY_NODE

#define LOG_PRINT_CC_PRIORITY_NODE ( priority,
con,
msg )
Value:
do { \
if (priority) {\
LOG_INFO_CC(con, "[priority]" << msg); \
} else {\
LOG_INFO_CC(con, msg); \
} \
} while(0)

◆ MIN_WANTED_SEED_NODES

#define MIN_WANTED_SEED_NODES   12

◆ MONERO_DEFAULT_LOG_CATEGORY

#define MONERO_DEFAULT_LOG_CATEGORY   "net.p2p"

◆ NET_MAKE_IP

#define NET_MAKE_IP ( b1,
b2,
b3,
b4 )
Value:
((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))

Function Documentation

◆ make_address_v4_from_v6()

boost::asio::ip::address_v4 make_address_v4_from_v6 ( const boost::asio::ip::address_v6 & a)
inlinestatic