34 #include <boost/uuid/uuid.hpp> 35 #include <boost/serialization/version.hpp> 58 #pragma pack (push, 1) 71 template<typename AddressType>
101 template<typename AddressType>
122 template<typename AddressType>
150 std::stringstream ss;
151 ss << std::setfill (
'0') << std::setw (8) <<
std::hex << std::noshowbase;
155 <<
" \trpc port " << (pe.rpc_port > 0 ?
std::to_string(pe.rpc_port) :
"-")
156 <<
" \trpc credits per hash " << (pe.rpc_credits_per_hash > 0 ?
std::to_string(pe.rpc_credits_per_hash) :
"-")
157 <<
" \tpruning seed " << pe.pruning_seed
205 #define P2P_COMMANDS_POOL_BASE 1000 210 template<
class t_playload_type>
246 template<class t_playload_type>
286 #define PING_OK_RESPONSE_STATUS_TEXT "OK" int64_t last_seen
Definition: p2p_protocol_defs.h:76
uint16_t rpc_port
Definition: p2p_protocol_defs.h:78
AddressType adr
Definition: p2p_protocol_defs.h:125
AddressType adr
Definition: p2p_protocol_defs.h:74
::std::string string
Definition: gtest-port.h:1097
#define P2P_COMMANDS_POOL_BASE
Definition: p2p_protocol_defs.h:205
peerid_type id
Definition: p2p_protocol_defs.h:126
AddressType adr
Definition: p2p_protocol_defs.h:104
uint32_t pruning_seed
Definition: p2p_protocol_defs.h:77
const char * s
Definition: minissdp.c:596
unsigned short uint16_t
Definition: stdint.h:125
#define KV_SERIALIZE(varialble)
Definition: keyvalue_serialization.h:120
int64_t first_seen
Definition: p2p_protocol_defs.h:106
#define END_SERIALIZE()
self-explanatory
Definition: serialization.h:150
Simple DSL AAPI based on.
peerid_type id
Definition: p2p_protocol_defs.h:75
Definition: p2p_protocol_defs.h:123
const char * uuid
Definition: minissdp.c:598
unsigned int uint32_t
Definition: stdint.h:126
peerid_type id
Definition: p2p_protocol_defs.h:105
bool is_income
Definition: p2p_protocol_defs.h:127
Definition: p2p_protocol_defs.h:102
unsigned __int64 uint64_t
Definition: stdint.h:136
std::string get_time_interval_string(const time_t &time_)
Definition: time_helper.h:58
#define KV_SERIALIZE_VAL_POD_AS_BLOB(varialble)
Definition: keyvalue_serialization.h:121
Definition: misc_language.h:103
TODO: (mj-xmr) This will be reduced in an another PR.
Definition: byte_slice.h:39
#define VARINT_FIELD(f)
tags and serializes the varint f
Definition: serialization.h:189
time
Definition: gen_wide_data.py:40
signed __int64 int64_t
Definition: stdint.h:135
uint32_t rpc_credits_per_hash
Definition: p2p_protocol_defs.h:79
#define BEGIN_SERIALIZE()
Begins the environment of the DSL for describing how to serialize an of an archive type...
Definition: serialization.h:122
std::string to_string(t_connection_type type)
Definition: connection_basic.cpp:70
#define END_KV_SERIALIZE_MAP()
Definition: keyvalue_serialization.h:118
#define KV_SERIALIZE_OPT(variable, default_value)
Definition: keyvalue_serialization.h:125
#define FIELD(f)
tags the field with the variable name and then serializes it
Definition: serialization.h:169
static constexpr const char hex[]
Definition: wipeable_string.cpp:36
#define BEGIN_KV_SERIALIZE_MAP()
Definition: keyvalue_serialization.h:43
Definition: p2p_protocol_defs.h:72