Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
web::Resolver Class Reference

Simple hostnames to IP addresses resolver. More...

#include <Resolver.hpp>

Public Member Functions

std::vector< std::string > resolve (std::string_view hostname)
 Resolve hostname to IP addresses.
 
std::vector< std::string > resolve (std::string_view hostname, std::string_view service)
 Resolve to IP addresses with port.
 

Detailed Description

Simple hostnames to IP addresses resolver.

Member Function Documentation

◆ resolve() [1/2]

std::vector< std::string > web::Resolver::resolve ( std::string_view hostname)

Resolve hostname to IP addresses.

Exceptions
Thismethod throws an exception when the hostname cannot be resolved.
Parameters
hostnameHostname to resolve
Returns
IP addresses of the hostname

◆ resolve() [2/2]

std::vector< std::string > web::Resolver::resolve ( std::string_view hostname,
std::string_view service )

Resolve to IP addresses with port.

Exceptions
Thismethod throws an exception when the hostname cannot be resolved.
Parameters
hostnameHostname to resolve
serviceService to resolve
Returns
IP addresses of the hostname

The documentation for this class was generated from the following files: