Monero
Loading...
Searching...
No Matches
parse.h File Reference
#include <boost/asio/ip/tcp.hpp>
#include <boost/optional/optional.hpp>
#include <boost/utility/string_ref.hpp>
#include <cstdint>
#include "common/expect.h"
#include "net/fwd.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.

Classes

struct  net::scheme_and_authority
 Separates scheme, authority, and path sections of a URI. More...
struct  net::userinfo_and_hostport
 Separates the userinfo and host+port from URI authority. More...
struct  net::user_and_pass
 Separates the user and pass sections from URI userinfo. More...
struct  net::uri_components
 Separates scheme, user, pass, and host+port sections of a URI. More...
struct  net::socks::endpoint
 Separates TCP address, user+pass, and socks version. More...

Namespaces

namespace  net
namespace  net::socks

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)