|
Electroneum
|
Namespaces | |
| socks | |
| zmq | |
Classes | |
| class | i2p_address |
| b32 i2p address; internal format not condensed/decoded. More... | |
| class | tor_address |
| Tor onion address; internal format not condensed/decoded. More... | |
Enumerations | |
| enum | error : int { error::expected_tld = 1, error::invalid_host, error::invalid_i2p_address, error::invalid_port, error::invalid_tor_address, error::unsupported_address } |
| General net errors. More... | |
Functions | |
| std::error_category const & | error_category () noexcept |
| std::error_code | make_error_code (error value) noexcept |
| bool | operator== (const i2p_address &lhs, const i2p_address &rhs) noexcept |
| bool | operator!= (const i2p_address &lhs, const i2p_address &rhs) noexcept |
| bool | operator< (const i2p_address &lhs, const i2p_address &rhs) noexcept |
| expect< epee::net_utils::network_address > | get_network_address (const boost::string_ref address, const std::uint16_t default_port) |
| bool | operator== (const tor_address &lhs, const tor_address &rhs) noexcept |
| bool | operator!= (const tor_address &lhs, const tor_address &rhs) noexcept |
| bool | operator< (const tor_address &lhs, const tor_address &rhs) noexcept |
|
strong |
General net errors.
Definition at line 37 of file error.h.
|
noexcept |
| expect< epee::net_utils::network_address > net::get_network_address | ( | boost::string_ref | address, |
| std::uint16_t | default_port | ||
| ) |
Identifies onion, i2p and IPv4 addresses and returns them as a generic network_address. If the type is unsupported, it might be a hostname, and error() == net::error::kUnsupportedAddress is returned.
| address | An onion address, i2p address, ipv4 address or hostname. Hostname will return an error. |
| default_port | If address does not specify a port, this value will be used. |
Definition at line 38 of file parse.cpp.


|
inlinenoexcept |
net::error as a std::error_code value. Definition at line 52 of file error.h.


|
inlinenoexcept |
Definition at line 131 of file tor_address.h.
|
inlinenoexcept |
Definition at line 131 of file i2p_address.h.
|
inlinenoexcept |
Definition at line 136 of file i2p_address.h.
|
inlinenoexcept |
Definition at line 136 of file tor_address.h.
|
inlinenoexcept |
Definition at line 126 of file tor_address.h.
|
inlinenoexcept |
Definition at line 126 of file i2p_address.h.