Monero
Loading...
Searching...
No Matches
parse.h File Reference
#include <boost/asio/ip/tcp.hpp>
#include <boost/utility/string_ref.hpp>
#include <cstdint>
#include "common/expect.h"
#include "net/net_utils_base.h"
Include dependency graph for parse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  net

Functions

void net::get_network_address_host_and_port (const std::string &address, std::string &host, std::string &port)
 Takes a valid address string (IP, Tor, I2P, or DNS name) and splits it into host and port.
expect< epee::net_utils::network_addressnet::get_network_address (const boost::string_ref address, const std::uint16_t default_port)
expect< epee::net_utils::ipv4_network_subnetnet::get_ipv4_subnet_address (const boost::string_ref address, bool allow_implicit_32)
expect< boost::asio::ip::tcp::endpoint > net::get_tcp_endpoint (const boost::string_ref address)