GResolver: GResolver

Description Methods and Functions Hierarchy Detailed Description Structures Signals Author(s) References

Description

Asynchronous and cancellable DNS resolver

Methods and Functions

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)

Hierarchy

1
2
3
4
GObject
   +----GResolver
GEnum
   +----GResolverError

Detailed Description

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.

Structures

GResolver

The object that handles DNS resolution. Use gResolverGetDefault to get the default resolver.

Signals

reload(resolver, user.data)

Emitted when the resolver notices that the system resolver configuration has changed.

resolver

a GResolver

user.data

user data set when the signal handler was connected.

Author(s)

Derived by RGtkGen from GTK+ documentation

References

https://developer.gnome.org/gio/stable/GResolver.html


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.

Related to GResolver in RGtk2...