ProxyAddressEnumerator

gio.proxy_address_enumerator.ProxyAddressEnumerator is a wrapper around gio.socket_address_enumerator.SocketAddressEnumerator which takes the gio.socket_address.SocketAddress instances returned by the gio.socket_address_enumerator.SocketAddressEnumerator and wraps them in gio.proxy_address.ProxyAddress instances, using the given property@Gio.ProxyAddressEnumerator:proxy-resolver.

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

class ProxyAddressEnumerator : SocketAddressEnumerator {}

Inherited Members

From SocketAddressEnumerator

next
gio.socket_address.SocketAddress next(gio.cancellable.Cancellable cancellable)

Retrieves the next #GSocketAddress from enumerator. Note that this may block for some amount of time. (Eg, a #GNetworkAddress may need to do a DNS lookup before it can return an address.) Use gio.socket_address_enumerator.SocketAddressEnumerator.nextAsync if you need to avoid blocking.

nextAsync
void nextAsync(gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously retrieves the next #GSocketAddress from enumerator and then calls callback, which must call gio.socket_address_enumerator.SocketAddressEnumerator.nextFinish to get the result.

nextFinish
gio.socket_address.SocketAddress nextFinish(gio.async_result.AsyncResult result)

Retrieves the result of a completed call to gio.socket_address_enumerator.SocketAddressEnumerator.nextAsync. See gio.socket_address_enumerator.SocketAddressEnumerator.next for more information about error handling.