ProxyAddressEnumerator

open class ProxyAddressEnumerator(pointer: <Error class: unknown class><<Error class: unknown class>>) : SocketAddressEnumerator

#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.

Skipped during bindings generation

  • method connectable: Property has no getter nor setter

  • method default-port: Property has no getter nor setter

  • method proxy-resolver: Property has no getter nor setter

  • method uri: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioProxyAddressEnumeratorPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gioSocketAddressEnumeratorPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun next(cancellable: Cancellable? = null): <Error class: unknown class><SocketAddress>

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.

Link copied to clipboard
open fun nextAsync(cancellable: Cancellable? = null, callback: AsyncReadyCallback)

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

Link copied to clipboard
open fun nextFinish(result: AsyncResult): <Error class: unknown class><SocketAddress>

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.