4 #include <boost/uuid/uuid_io.hpp> 9 namespace epee {
namespace net_utils
12 {
return is_same_host(other) &&
port() == other.port(); }
15 {
return is_same_host(other) ?
port() < other.port() :
ip() < other.ip(); }
28 network_address::interface
const*
const self_ =
self.get();
29 network_address::interface
const*
const other_self = other.self.get();
30 if (self_ == other_self)
return true;
31 if (!self_ || !other_self)
return false;
32 if (
typeid(*self_) !=
typeid(*other_self))
return false;
33 return self_->equal(*other_self);
39 network_address::interface
const*
const self_ =
self.get();
40 network_address::interface
const*
const other_self = other.self.get();
41 if (self_ == other_self)
return false;
42 if (!self_ || !other_self)
return self ==
nullptr;
43 if (
typeid(*self_) !=
typeid(*other_self))
44 return self_->get_type_id() < other_self->get_type_id();
45 return self_->less(*other_self);
51 network_address::interface
const*
const self_ =
self.get();
52 network_address::interface
const*
const other_self = other.self.get();
53 if (self_ == other_self)
return true;
54 if (!self_ || !other_self)
return false;
55 if (
typeid(*self_) !=
typeid(*other_self))
return false;
56 return self_->is_same_host(*other_self);
91 if (
value ==
"public")
bool equal(const ipv4_network_address &other) const noexcept
std::string print_connection_context_short(const connection_context_base &ctx)
constexpr uint16_t port() const noexcept
zone zone_from_string(boost::string_ref value) noexcept
std::string host_str() const
bool is_same_host(const network_address &other) const
constexpr uint32_t ip() const noexcept
const char * zone_to_string(zone value) noexcept
bool less(const network_address &other) const
bool is_ip_loopback(uint32_t ip)
const network_address m_remote_address
boost::endian::big_uint32_t ip
boost::endian::big_uint16_t port
bool is_ip_local(uint32_t ip)
const GenericPointer< typename T::ValueType > T2 value
std::string print_connection_context(const connection_context_base &ctx)
std::string to_string(t_connection_type type)
bool less(const ipv4_network_address &other) const noexcept
bool equal(const network_address &other) const
const boost::uuids::uuid m_connection_id