34 #include <boost/uuid/uuid.hpp> 35 #include <boost/serialization/version.hpp> 44 #ifdef ALLOW_DEBUG_COMMANDS 56 s << std::hex << peer_id;
60 #pragma pack (push, 1) 73 template<typename AddressType>
85 if (!is_store || this_ref.last_seen != 0)
93 template<typename AddressType>
108 template<typename AddressType>
130 std::stringstream ss;
131 ss << std::setfill (
'0') << std::setw (8) << std::hex << std::noshowbase;
134 ss << pe.id <<
"\t" << pe.adr.str()
135 <<
" \trpc port " << (pe.rpc_port > 0 ?
std::to_string(pe.rpc_port) :
"-")
136 <<
" \tpruning seed " << pe.pruning_seed
182 #define P2P_COMMANDS_POOL_BASE 1000 187 template<
class t_playload_type>
217 std::vector<peerlist_entry_base<network_address_old>> local_peerlist;
218 for (
const auto &p: this_ref.local_peerlist_new)
227 MDEBUG(
"Not including in legacy peer list: " << p.adr.str());
236 std::vector<peerlist_entry_base<network_address_old>> local_peerlist;
238 for (
const auto &p: local_peerlist)
251 template<
class t_playload_type>
278 std::vector<peerlist_entry_base<network_address_old>> local_peerlist;
279 for (
const auto &p: this_ref.local_peerlist_new)
288 MDEBUG(
"Not including in legacy peer list: " << p.adr.str());
297 std::vector<peerlist_entry_base<network_address_old>> local_peerlist;
299 for (
const auto &p: local_peerlist)
321 #define PING_OK_RESPONSE_STATUS_TEXT "OK" 346 #ifdef ALLOW_DEBUG_COMMANDS 350 struct proof_of_trust
364 template<
class payload_stat_info>
365 struct COMMAND_REQUEST_STAT_INFO_T
376 typedef
epee::misc_utils::struct_init<request_t> request;
383 uint64_t incoming_connections_count;
384 payload_stat_info payload_info;
394 typedef
epee::misc_utils::struct_init<response_t>
response;
401 struct COMMAND_REQUEST_NETWORK_STATE
412 typedef
epee::misc_utils::struct_init<request_t> request;
416 std::vector<peerlist_entry> local_peerlist_white;
417 std::vector<peerlist_entry> local_peerlist_gray;
418 std::vector<connection_entry> connections_list;
429 typedef
epee::misc_utils::struct_init<response_t>
response;
435 struct COMMAND_REQUEST_PEER_ID
444 typedef
epee::misc_utils::struct_init<request_t> request;
454 typedef
epee::misc_utils::struct_init<response_t>
response;
460 struct COMMAND_REQUEST_SUPPORT_FLAGS
469 typedef
epee::misc_utils::struct_init<request_t> request;
479 typedef
epee::misc_utils::struct_init<response_t>
response;
488 s.append(reinterpret_cast<const char*>(&pot.peer_id),
sizeof(pot.peer_id));
489 s.append(reinterpret_cast<const char*>(&pot.time),
sizeof(pot.time));
epee::misc_utils::struct_init< response_t > response
#define P2P_COMMANDS_POOL_BASE
#define KV_SERIALIZE(varialble)
static constexpr address_type get_type_id() noexcept
unsigned __int64 uint64_t
#define KV_SERIALIZE_CONTAINER_POD_AS_BLOB(varialble)
std::string get_time_interval_string(const time_t &time_)
#define KV_SERIALIZE_VAL_POD_AS_BLOB(varialble)
version
Supported socks variants.
void cn_fast_hash(const void *data, size_t length, char *hash)
std::string to_string(t_connection_type type)
#define END_KV_SERIALIZE_MAP()
#define KV_SERIALIZE_OPT(variable, default_value)
#define BEGIN_KV_SERIALIZE_MAP()