|
Monero
|
#include <net_utils_base.h>
Classes | |
| struct | interface |
| struct | implementation |
Public Member Functions | |
| network_address () | |
| template<typename T> | |
| network_address (const T &src) | |
| bool | equal (const network_address &other) const |
| bool | less (const network_address &other) const |
| bool | is_same_host (const network_address &other) const |
| std::string | str () const |
| std::string | host_str () const |
| bool | is_loopback () const |
| bool | is_local () const |
| address_type | get_type_id () const |
| zone | get_zone () const |
| bool | is_blockable () const |
| std::uint16_t | port () const |
| template<typename Type> | |
| const Type & | as () const |
| if (!epee::serialization::selector< is_store >::serialize(type, stg, hparent_section, "type")) return false | |
| switch (address_type(type)) | |
| MERROR ("Unsupported network address type: "<<(unsigned) type) | |
Public Attributes | |
| std::uint8_t | type = std::uint8_t(is_store ? this_ref.get_type_id() : address_type::invalid) |
| return | false |
Static Public Attributes | |
| static constexpr std::integral_constant< bool, is_store > | is_store_ {} |
Private Member Functions | |
| template<typename Type> | |
| Type & | as_mutable () const |
| template<typename T, typename t_storage> | |
| bool | serialize_addr (std::false_type, t_storage &stg, typename t_storage::hsection hparent) |
| template<typename T, typename t_storage> | |
| bool | serialize_addr (std::true_type, t_storage &stg, typename t_storage::hsection hparent) const |
Private Attributes | |
| std::shared_ptr< interface > | self |
|
inline |
| bool epee::net_utils::network_address::equal | ( | const network_address & | other | ) | const |
|
inline |
|
inline |
|
inline |
| epee::net_utils::network_address::if | ( | !epee::serialization::selector< is_store > | ::serializetype, stg, hparent_section, "type" | ) |
|
inline |
|
inline |
|
inline |
| bool epee::net_utils::network_address::is_same_host | ( | const network_address & | other | ) | const |
| bool epee::net_utils::network_address::less | ( | const network_address & | other | ) | const |
| epee::net_utils::network_address::MERROR | ( | "Unsupported network address type: "<<(unsigned) | type | ) |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
| return epee::net_utils::network_address::false |
|
staticconstexpr |
|
private |
| std::uint8_t epee::net_utils::network_address::type = std::uint8_t(is_store ? this_ref.get_type_id() : address_type::invalid) |