Gio.ProxyAddressEnumerator

g GObject.Object GObject.Object Gio.SocketAddressEnumerator Gio.SocketAddressEnumerator GObject.Object->Gio.SocketAddressEnumerator Gio.ProxyAddressEnumerator Gio.ProxyAddressEnumerator Gio.SocketAddressEnumerator->Gio.ProxyAddressEnumerator

Subclasses:

None

Methods

Inherited:

Gio.SocketAddressEnumerator (3), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

Gio.SocketAddressEnumerator (3), GObject.Object (7)

Properties

Name

Type

Flags

Short Description

connectable

Gio.SocketConnectable

r/w/co

default-port

int

r/w/co

proxy-resolver

Gio.ProxyResolver

r/w/c

uri

str

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gio.SocketAddressEnumerator

r

Class Details

class Gio.ProxyAddressEnumerator(**kwargs)
Bases:

Gio.SocketAddressEnumerator

Abstract:

No

Structure:

Gio.ProxyAddressEnumeratorClass

GProxyAddressEnumerator is a wrapper around [class`Gio`.SocketAddressEnumerator] which takes the [class`Gio`.SocketAddress] instances returned by the [class`Gio`.SocketAddressEnumerator] and wraps them in [class`Gio`.ProxyAddress] instances, using the given [property`Gio`.ProxyAddressEnumerator:proxy-resolver].

This enumerator will be returned (for example, by [method`Gio`.SocketConnectable.enumerate]) as appropriate when a proxy is configured; there should be no need to manually wrap a [class`Gio`.SocketAddressEnumerator] instance with one.

Property Details

Gio.ProxyAddressEnumerator.props.connectable
Name:

connectable

Type:

Gio.SocketConnectable

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The connectable being enumerated.

Gio.ProxyAddressEnumerator.props.default_port
Name:

default-port

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The default port to use if Gio.ProxyAddressEnumerator :uri does not specify one.

New in version 2.38.

Gio.ProxyAddressEnumerator.props.proxy_resolver
Name:

proxy-resolver

Type:

Gio.ProxyResolver

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The proxy resolver to use.

New in version 2.36.

Gio.ProxyAddressEnumerator.props.uri
Name:

uri

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The destination URI. Use none:// for a generic socket.