|
Electroneum
|
b32 i2p address; internal format not condensed/decoded. More...
#include <i2p_address.h>
Public Member Functions | |
| i2p_address () noexcept | |
An object with port() == 0 and host_str() == unknown_str(). More... | |
| bool | _load (epee::serialization::portable_storage &src, epee::serialization::section *hparent) |
| Load from epee p2p format, and. More... | |
| bool | store (epee::serialization::portable_storage &dest, epee::serialization::section *hparent) const |
| Store in epee p2p format. More... | |
| i2p_address (const i2p_address &rhs) noexcept | |
| ~i2p_address ()=default | |
| i2p_address & | operator= (const i2p_address &rhs) noexcept |
| bool | is_unknown () const noexcept |
| bool | equal (const i2p_address &rhs) const noexcept |
| bool | less (const i2p_address &rhs) const noexcept |
| bool | is_same_host (const i2p_address &rhs) const noexcept |
| std::string | str () const |
| const char * | host_str () const noexcept |
| std::uint16_t | port () const noexcept |
| bool | is_blockable () const noexcept |
Static Public Member Functions | |
| static constexpr std::size_t | buffer_size () noexcept |
| static const char * | unknown_str () noexcept |
| static i2p_address | unknown () noexcept |
| static expect< i2p_address > | make (boost::string_ref address, std::uint16_t default_port=0) |
| static constexpr bool | is_loopback () noexcept |
| static constexpr bool | is_local () noexcept |
| static constexpr epee::net_utils::address_type | get_type_id () noexcept |
| static constexpr epee::net_utils::zone | get_zone () noexcept |
Private Member Functions | |
| i2p_address (boost::string_ref host, std::uint16_t port) noexcept | |
Keep in private, host.size() has no runtime check. More... | |
Private Attributes | |
| std::uint16_t | port_ |
| char | host_ [61] |
b32 i2p address; internal format not condensed/decoded.
|
privatenoexcept |
Keep in private, host.size() has no runtime check.
|
noexcept |
An object with port() == 0 and host_str() == unknown_str().
|
noexcept |
|
default |
| bool net::i2p_address::_load | ( | epee::serialization::portable_storage & | src, |
| epee::serialization::section * | hparent | ||
| ) |
Load from epee p2p format, and.
|
inlinestaticconstexprnoexcept |
|
noexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinenoexcept |
x.b32.i2p value or unknown_str().
|
inlinenoexcept |
!is_unknown().
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
noexcept |
|
noexcept |
unknown().
|
noexcept |
|
static |
Parse address in b32 i2p format (i.e. x.b32.i2p:80) with default_port being used if port is not specified in address.
|
noexcept |
|
inlinenoexcept |
0 if unspecified. | bool net::i2p_address::store | ( | epee::serialization::portable_storage & | dest, |
| epee::serialization::section * | hparent | ||
| ) | const |
Store in epee p2p format.
| std::string net::i2p_address::str | ( | ) | const |
x.b32.i2p or x.b32.i2p:z if port() != 0.
|
inlinestaticnoexcept |
i2p_address object.
|
staticnoexcept |
<unknown tor host>.
|
private |
|
private |