ProxyAddressEnumerator

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

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

Constructors

this
this(GProxyAddressEnumerator* gProxyAddressEnumerator, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getProxyAddressEnumeratorStruct
GProxyAddressEnumerator* getProxyAddressEnumeratorStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gProxyAddressEnumerator
GProxyAddressEnumerator* gProxyAddressEnumerator;

the main Gtk struct

Inherited Members

From SocketAddressEnumerator

gSocketAddressEnumerator
GSocketAddressEnumerator* gSocketAddressEnumerator;

the main Gtk struct

getSocketAddressEnumeratorStruct
GSocketAddressEnumerator* getSocketAddressEnumeratorStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
next
SocketAddress next(Cancellable cancellable)

Retrieves the next gio.SocketAddress from enumerator. Note that this may block for some amount of time. (Eg, a gio.NetworkAddress may need to do a DNS lookup before it can return an address.) Use Socket.addressEnumeratorNextAsync if you need to avoid blocking.

nextAsync
void nextAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Asynchronously retrieves the next gio.SocketAddress from enumerator and then calls callback, which must call Socket.addressEnumeratorNextFinish to get the result.

nextFinish
SocketAddress nextFinish(AsyncResultIF result)

Retrieves the result of a completed call to Socket.addressEnumeratorNextAsync. See Socket.addressEnumeratorNext for more information about error handling.