ProxyAddressEnumerator

class ProxyAddressEnumerator(**properties: Any)

Superclasses: SocketAddressEnumerator, Object

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

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

Properties

class ProxyAddressEnumerator
props.connectable: SocketConnectable

The connectable being enumerated.

props.default_port: int

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

Added in version 2.38.

props.proxy_resolver: ProxyResolver

The proxy resolver to use.

Added in version 2.36.

props.uri: str

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

Fields

class ProxyAddressEnumerator
parent_instance
priv