Uhm.Resolver

g GObject.Object GObject.Object Gio.Resolver Gio.Resolver GObject.Object->Gio.Resolver Uhm.Resolver Uhm.Resolver Gio.Resolver->Uhm.Resolver

Subclasses:

None

Methods

Inherited:

Gio.Resolver (19), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_A (hostname, addr)

add_SRV (service, protocol, domain, addr, port)

reset ()

Virtual Methods

Inherited:

Gio.Resolver (15), GObject.Object (7)

Properties

Inherited:

Gio.Resolver (1)

Signals

Inherited:

Gio.Resolver (1), GObject.Object (1)

Fields

Inherited:

Gio.Resolver (1), GObject.Object (1)

Name

Type

Access

Description

parent

Gio.Resolver

r

Class Details

class Uhm.Resolver(**kwargs)
Bases:

Gio.Resolver

Abstract:

No

Structure:

Uhm.ResolverClass

All the fields in the Uhm.Resolver structure are private and should never be accessed directly.

New in version 0.1.0.

classmethod new()
Returns:

a new Uhm.Resolver; unref with GObject.Object.unref()

Return type:

Uhm.Resolver

Creates a new Uhm.Resolver with default property values.

add_A(hostname, addr)
Parameters:
  • hostname (str) – the hostname to match

  • addr (str) – the IP address to resolve to

Returns:

True on success; False otherwise

Return type:

bool

Adds a resolution mapping from the host name hostname to the IP address addr.

New in version 0.1.0.

add_SRV(service, protocol, domain, addr, port)
Parameters:
  • service (str) – the service name to match

  • protocol (str) – the protocol name to match

  • domain (str) – the domain name to match

  • addr (str) – the IP address to resolve to

  • port (int) – the port to resolve to

Returns:

True on success; False otherwise

Return type:

bool

Adds a resolution mapping the given service (on protocol and domain) to the IP address addr and given port.

New in version 0.1.0.

reset()

Resets the state of the Uhm.Resolver, deleting all records added with Uhm.Resolver.add_A() and Uhm.Resolver.add_SRV().