lookupService

open fun lookupService(service: String, protocol: String, domain: String, cancellable: Cancellable? = null): <Error class: unknown class><<Error class: unknown class>>

Synchronously performs a DNS SRV lookup for the given @service and

Return

a non-empty #GList of #GSrvTarget, or null on error. You must free each of the targets and the list when you are done with it. (You can use g_resolver_free_targets() to do this.)

Since

2.22

Parameters

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 #GCancellable, or null