Gio.Resolver
const Gio = imports.gi.Gio; let resolver = new Gio.Resolver();
Gio.Resolver provides cancellable synchronous and asynchronous DNS resolution, for hostnames (Gio.Resolver.prototype.lookup_by_address, Gio.Resolver.prototype.lookup_by_name and their async variants) and SRV (service) records (Gio.Resolver.prototype.lookup_service).
Gio.NetworkAddress and Gio.NetworkService provide wrappers around Gio.Resolver functionality that also implement Gio.SocketConnectable, making it easy to connect to a remote host/service.
Hierarchy
-
GObject.Object
- Gio.Resolver
Methods
- Gio.Resolver.prototype.lookup_by_address
- Gio.Resolver.prototype.lookup_by_address_async
- Gio.Resolver.prototype.lookup_by_address_finish
- Gio.Resolver.prototype.lookup_by_name
- Gio.Resolver.prototype.lookup_by_name_async
- Gio.Resolver.prototype.lookup_by_name_finish
- Gio.Resolver.prototype.lookup_records
- Gio.Resolver.prototype.lookup_records_async
- Gio.Resolver.prototype.lookup_records_finish
- Gio.Resolver.prototype.lookup_service
- Gio.Resolver.prototype.lookup_service_async
- Gio.Resolver.prototype.lookup_service_finish
- Gio.Resolver.prototype.set_default
Static Functions
Signals
Virtual functions
- Gio.Resolver::lookup_by_address
- Gio.Resolver::lookup_by_address_async
- Gio.Resolver::lookup_by_address_finish
- Gio.Resolver::lookup_by_name
- Gio.Resolver::lookup_by_name_async
- Gio.Resolver::lookup_by_name_finish
- Gio.Resolver::lookup_records
- Gio.Resolver::lookup_records_async
- Gio.Resolver::lookup_records_finish
- Gio.Resolver::lookup_service_async
- Gio.Resolver::lookup_service_finish