class DNSResolver
Defined at line 333 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/event_engine.h
Provides asynchronous resolution.
This object has a destruction-is-cancellation semantic.
Implementations should make sure that all pending requests are cancelled
when the object is destroyed and all pending callbacks will be called
shortly. If cancellation races with request completion, implementations
may choose to either cancel or satisfy the request.
Public Methods
void LookupHostname (LookupHostnameCallback on_resolve, absl::string_view name, absl::string_view default_port)
Asynchronously resolve an address.
may be a non-numeric named service port, and will only
be used if
does not already contain a port component.
When the lookup is complete or cancelled, the
callback
will be invoked with a status indicating the success or failure of the
lookup. Implementations should pass the appropriate statuses to the
callback. For example, callbacks might expect to receive CANCELLED or
NOT_FOUND.
void LookupSRV (LookupSRVCallback on_resolve, absl::string_view name)
Asynchronously perform an SRV record lookup.
has the same meaning and expectations as
callback.
void LookupTXT (LookupTXTCallback on_resolve, absl::string_view name)
Asynchronously perform a TXT record lookup.
has the same meaning and expectations as
callback.
void ~DNSResolver ()
Defined at line 359 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/event_engine.h