Description Methods and Functions Hierarchy Detailed Description Structures Signals Author(s) References
Asynchronous and cancellable DNS resolver
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)
1 2 3 4 |
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.
GResolver
The object that handles DNS resolution. Use gResolverGetDefault
to get the default resolver.
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.
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gio/stable/GResolver.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.