Gio.Resolver.prototype.lookup_service_async
function lookup_service_async(service: String, protocol: String, domain: String, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_resolver_lookup_service_async() }
Begins asynchronously performing a DNS SRV lookup for the given service and protocol in the given domain, and eventually calls callback, which must call Gio.Resolver.prototype.lookup_service_finish to get the final result. See Gio.Resolver.prototype.lookup_service for more details.
Since 2.22
- service
the service type to look up (eg, "ldap")
- protocol
the networking protocol to use for service (eg, "tcp")
- domain
the DNS domain to look up the service in
- cancellable
a Gio.Cancellable, or null
- callback
callback to call after resolution completes