ProxyAddressEnumerator

#GProxyAddressEnumerator is a wrapper around #GSocketAddressEnumerator which takes the #GSocketAddress instances returned by the #GSocketAddressEnumerator and wraps them in #GProxyAddress instances, using the given #GProxyAddressEnumerator:proxy-resolver.

This enumerator will be returned (for example, by g_socket_connectable_enumerate()) as appropriate when a proxy is configured; there should be no need to manually wrap a #GSocketAddressEnumerator 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 #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 g_socket_address_enumerator_next_async() if you need to avoid blocking.

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

Asynchronously retrieves the next #GSocketAddress from @enumerator and then calls @callback, which must call g_socket_address_enumerator_next_finish() to get the result.

nextFinish
SocketAddress nextFinish(AsyncResultIF result)

Retrieves the result of a completed call to g_socket_address_enumerator_next_async(). See g_socket_address_enumerator_next() for more information about error handling.

Meta