boost::corosio::resolver::resolve
resolve overloads
Synopses
Declared in <boost/corosio/resolver.hpp>
Initiate an asynchronous reverse resolve operation.
Initiate an asynchronous resolve operation.
auto
resolve(
std::string_view host,
std::string_view service);
Initiate an asynchronous reverse resolve operation with flags.
auto
resolve(
endpoint const& ep,
reverse_flags flags);
Initiate an asynchronous resolve operation with flags.
auto
resolve(
std::string_view host,
std::string_view service,
resolve_flags flags);
Return Value
-
An awaitable that completes with
io_result<reverse_resolver_result>. -
An awaitable that completes with
io_result<resolver_results>.
Parameters
| Name | Description |
|---|---|
ep |
The endpoint to resolve. |
host |
A string identifying a location. May be a descriptive name or a numeric address string. |
service |
A string identifying the requested service. This may be a descriptive name or a numeric string corresponding to a port number. |
flags |
Flags controlling resolution behavior. See reverse_flags. |
Created with MrDocs