Simple hostnames to IP addresses resolver.
More...
#include <Resolver.hpp>
|
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.
|
|
Simple hostnames to IP addresses resolver.
◆ resolve() [1/2]
std::vector< std::string > web::Resolver::resolve |
( |
std::string_view | hostname | ) |
|
Resolve hostname to IP addresses.
- Exceptions
-
This | method throws an exception when the hostname cannot be resolved. |
- Parameters
-
hostname | Hostname 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
-
This | method throws an exception when the hostname cannot be resolved. |
- Parameters
-
hostname | Hostname to resolve |
service | Service to resolve |
- Returns
- IP addresses of the hostname
The documentation for this class was generated from the following files:
- /__w/clio/clio/src/web/Resolver.hpp
- /__w/clio/clio/src/web/Resolver.cpp