ProxyAddressEnumerator

A subclass of gio.SocketAddressEnumerator that takes another address enumerator and wraps its results in GProxyAddresses as directed by the default GProxyResolver

Constructors

this
this(GProxyAddressEnumerator* gProxyAddressEnumerator, bool ownedRef = false)

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

Members

Functions

getProxyAddressEnumeratorStruct
GProxyAddressEnumerator* getProxyAddressEnumeratorStruct(bool transferOwnership = false)

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 = false)

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.

Meta