#include <iomgr_engine.h>
Public Member Functions | |
bool | CancelLookup (LookupTaskHandle handle) override |
LookupTaskHandle | LookupHostname (LookupHostnameCallback on_resolve, absl::string_view name, absl::string_view default_port, Duration timeout) override |
LookupTaskHandle | LookupSRV (LookupSRVCallback on_resolve, absl::string_view name, Duration timeout) override |
LookupTaskHandle | LookupTXT (LookupTXTCallback on_resolve, absl::string_view name, Duration timeout) override |
~IomgrDNSResolver () override | |
![]() | |
virtual | ~DNSResolver ()=default |
Additional Inherited Members | |
![]() | |
using | LookupHostnameCallback = std::function< void(absl::StatusOr< std::vector< ResolvedAddress > >)> |
using | LookupSRVCallback = std::function< void(absl::StatusOr< std::vector< SRVRecord > >)> |
Called with a collection of SRV records. More... | |
using | LookupTXTCallback = std::function< void(absl::StatusOr< std::string >)> |
Called with the result of a TXT record lookup. More... | |
Definition at line 63 of file iomgr_engine.h.
|
override |
|
overridevirtual |
Cancel an asynchronous lookup operation.
This shares the same semantics with EventEngine::Cancel: successfully cancelled lookups will not have their callbacks executed, and this method returns true.
Implements grpc_event_engine::experimental::EventEngine::DNSResolver.
|
overridevirtual |
Asynchronously resolve an address.
default_port may be a non-numeric named service port, and will only be used if address does not already contain a port component.
When the lookup is complete, the on_resolve 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 DEADLINE_EXCEEDED or NOT_FOUND.
If cancelled, on_resolve will not be executed.
Implements grpc_event_engine::experimental::EventEngine::DNSResolver.
|
overridevirtual |
Asynchronously perform an SRV record lookup.
on_resolve has the same meaning and expectations as LookupHostname's on_resolve callback.
Implements grpc_event_engine::experimental::EventEngine::DNSResolver.
|
overridevirtual |
Asynchronously perform a TXT record lookup.
on_resolve has the same meaning and expectations as LookupHostname's on_resolve callback.
Implements grpc_event_engine::experimental::EventEngine::DNSResolver.