Skip to content

Gio.ProxyAddressEnumerator

class — extends SocketAddressEnumerator

GProxyAddressEnumerator is a wrapper around SocketAddressEnumerator which takes the SocketAddress instances returned by the SocketAddressEnumerator and wraps them in ProxyAddress instances, using the given ProxyAddressEnumerator.proxy-resolver.

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

Properties

connectable

connectable: SocketConnectable  # read/write

The connectable being enumerated.

default_port

default_port: int  # read/write

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

proxy_resolver

proxy_resolver: ProxyResolver  # read/write

The proxy resolver to use.

uri

uri: str  # read/write

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