31 #include <boost/utility/string_ref.hpp> 43 class portable_storage;
61 static constexpr std::size_t
buffer_size() noexcept {
return sizeof(host_); }
104 const
char*
host_str() const noexcept {
return host_; }
110 static constexpr
bool is_local() noexcept {
return false; }
128 return lhs.equal(rhs);
133 return !lhs.equal(rhs);
138 return lhs.less(rhs);
i2p_address & operator=(const i2p_address &rhs) noexcept
bool is_blockable() const noexcept
b32 i2p address; internal format not condensed/decoded.
CXA_THROW_INFO_T void(* dest)(void *))
bool equal(const i2p_address &rhs) const noexcept
static const char * unknown_str() noexcept
bool _load(epee::serialization::portable_storage &src, epee::serialization::section *hparent)
Load from epee p2p format, and.
static i2p_address unknown() noexcept
bool is_same_host(const i2p_address &rhs) const noexcept
const char * host_str() const noexcept
static constexpr std::size_t buffer_size() noexcept
bool operator<(const i2p_address &lhs, const i2p_address &rhs) noexcept
bool operator!=(const i2p_address &lhs, const i2p_address &rhs) noexcept
bool is_unknown() const noexcept
bool operator==(const i2p_address &lhs, const i2p_address &rhs) noexcept
static constexpr bool is_local() noexcept
i2p_address() noexcept
An object with port() == 0 and host_str() == unknown_str().
static expect< i2p_address > make(boost::string_ref address, std::uint16_t default_port=0)
static constexpr epee::net_utils::address_type get_type_id() noexcept
static constexpr epee::net_utils::zone get_zone() noexcept
bool less(const i2p_address &rhs) const noexcept
static constexpr bool is_loopback() noexcept
std::uint16_t port() const noexcept
bool store(epee::serialization::portable_storage &dest, epee::serialization::section *hparent) const
Store in epee p2p format.