gResolverGetDefault()
gResolverSetDefault(object)
gResolverLookupByName(object, hostname, cancellable = NULL, .errwarn = TRUE)
gResolverLookupByNameAsync(object, hostname, cancellable = NULL, callback, user.data = NULL)
gResolverLookupByNameFinish(object, result, .errwarn = TRUE)
gResolverFreeAddresses(addresses)
gResolverLookupByAddress(object, address, cancellable = NULL, .errwarn = TRUE)
gResolverLookupByAddressAsync(object, address, cancellable = NULL, callback, user.data = NULL)
gResolverLookupByAddressFinish(object, result, .errwarn = TRUE)
gResolverLookupService(object, service, protocol, domain, cancellable = NULL, .errwarn = TRUE)
gResolverLookupServiceAsync(object, service, protocol, domain, cancellable = NULL, callback, user.data = NULL)
gResolverLookupServiceFinish(object, result, .errwarn = TRUE)
gResolverFreeTargets(targets)
GObject +----GResolver GEnum +----GResolverError
GResolver
provides cancellable synchronous and asynchronous DNS
resolution, for hostnames (gResolverLookupByAddress
,
gResolverLookupByName
and their async variants) and SRV
(service) records (gResolverLookupService
).
GNetworkAddress
and GNetworkService
provide wrappers around
GResolver
functionality that also implement GSocketConnectable
,
making it easy to connect to a remote host/service.