#include <net_utils_base.h>
|
| static constexpr std::integral_constant< bool, is_store > | is_store_ {} |
| |
Definition at line 110 of file net_utils_base.h.
◆ network_address() [1/2]
| epee::net_utils::network_address::network_address |
( |
| ) |
|
|
inline |
◆ network_address() [2/2]
template<typename T >
| epee::net_utils::network_address::network_address |
( |
const T & |
src | ) |
|
|
inline |
Definition at line 191 of file net_utils_base.h.
192 :
self(std::make_shared<implementation<T>>(src)) {}
◆ as()
template<typename Type >
| const Type& epee::net_utils::network_address::as |
( |
| ) |
const |
|
inline |
◆ equal()
Definition at line 25 of file net_utils_base.cpp.
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);
◆ get_type_id()
| address_type epee::net_utils::network_address::get_type_id |
( |
| ) |
const |
|
inline |
◆ get_zone()
| zone epee::net_utils::network_address::get_zone |
( |
| ) |
const |
|
inline |
◆ host_str()
| std::string epee::net_utils::network_address::host_str |
( |
| ) |
const |
|
inline |
Definition at line 197 of file net_utils_base.h.
197 {
return self ?
self->host_str() :
"<none>"; }
◆ if()
◆ is_blockable()
| bool epee::net_utils::network_address::is_blockable |
( |
| ) |
const |
|
inline |
Definition at line 202 of file net_utils_base.h.
202 {
return self ?
self->is_blockable() :
false; }
◆ is_local()
| bool epee::net_utils::network_address::is_local |
( |
| ) |
const |
|
inline |
Definition at line 199 of file net_utils_base.h.
199 {
return self ?
self->is_local() :
false; }
◆ is_loopback()
| bool epee::net_utils::network_address::is_loopback |
( |
| ) |
const |
|
inline |
Definition at line 198 of file net_utils_base.h.
198 {
return self ?
self->is_loopback() :
false; }
◆ is_same_host()
Definition at line 48 of file net_utils_base.cpp.
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);
◆ less()
Definition at line 36 of file net_utils_base.cpp.
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);
◆ MERROR()
| epee::net_utils::network_address::MERROR |
( |
"Unsupported network address type: "<<(unsigned) |
type | ) |
|
◆ str()
| std::string epee::net_utils::network_address::str |
( |
| ) |
const |
|
inline |
◆ switch()
Definition at line 213 of file net_utils_base.h.
216 return this_ref.template serialize_addr<ipv4_network_address>(
is_store_, stg, hparent_section);
218 return this_ref.template serialize_addr<net::tor_address>(
is_store_, stg, hparent_section);
220 return this_ref.template serialize_addr<net::i2p_address>(
is_store_, stg, hparent_section);
static constexpr std::integral_constant< bool, is_store > is_store_
◆ false
| return epee::net_utils::network_address::false |
◆ is_store_
| constexpr std::integral_constant<bool, is_store> epee::net_utils::network_address::is_store_ {} |
|
static |
◆ type
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/contrib/epee/include/net/net_utils_base.h
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/contrib/epee/src/net_utils_base.cpp