34 #include "net/net_utils_base.h" 40 template <
class Archive,
class ver_type>
41 inline void serialize(Archive &
a, epee::net_utils::network_address& na,
const ver_type ver)
44 if (
typename Archive::is_saving())
45 type = na.get_type_id();
49 case epee::net_utils::ipv4_network_address::ID:
50 if (!
typename Archive::is_saving())
51 na.reset(
new epee::net_utils::ipv4_network_address(0, 0));
52 a & na.as<epee::net_utils::ipv4_network_address>();
55 throw std::runtime_error(
"Unsupported network address type");
58 template <
class Archive,
class ver_type>
59 inline void serialize(Archive &
a, epee::net_utils::ipv4_network_address& na,
const ver_type ver)
63 if (!
typename Archive::is_saving())
68 template <
class Archive,
class ver_type>
76 template <
class Archive,
class ver_type>
Definition: binary_utils.h:37
int64_t last_seen
Definition: p2p_protocol_defs.h:73
Definition: unordered_containers_boost_serialization.h:38
AddressType adr
Definition: p2p_protocol_defs.h:71
void serialize(Archive &a, std::unordered_map< h_key, hval > &x, const boost::serialization::version_type ver)
Definition: unordered_containers_boost_serialization.h:127
AddressType adr
Definition: p2p_protocol_defs.h:86
int64_t first_seen
Definition: p2p_protocol_defs.h:88
peerid_type id
Definition: p2p_protocol_defs.h:72
peerid_type id
Definition: p2p_protocol_defs.h:87
Definition: p2p_protocol_defs.h:84
type
Definition: json.h:74
string a
Definition: MakeCryptoOps.py:15
Definition: p2p_protocol_defs.h:69