gio.socket_address_enumerator

Module for SocketAddressEnumerator class

Types 3

gio.socket_address_enumerator.SocketAddressEnumerator is an enumerator type for gio.socket_address.SocketAddress instances. It is returned by enumeration functions such as gio.socket_connectable.SocketConnectable.enumerate, which returns a gio.socket_address_enumerator.SocketAddressEnumerator to list each gio.socket_address.SocketAddress which could be used to connect to that gio.socket_connectable.SocketConnectable.

Enumeration is typically a blocking operation, so the asynchronous methods gio.socket_address_enumerator.SocketAddressEnumerator.nextAsync and gio.socket_address_enumerator.SocketAddressEnumerator.nextFinish should be used where possible.

Each gio.socket_address_enumerator.SocketAddressEnumerator can only be enumerated once. Once gio.socket_address_enumerator.SocketAddressEnumerator.next has returned NULL, further enumeration with that gio.socket_address_enumerator.SocketAddressEnumerator is not possible, and it can be unreffed.

Methods
GType _gType() @property
SocketAddressEnumerator self()Returns `this`, for use in `with` statements.
SocketAddressEnumeratorGidBuilder builder()Get builder for [gio.socket_address_enumerator.SocketAddressEnumerator] Returns: New builder object
gio.socket_address.SocketAddress next(gio.cancellable.Cancellable cancellable = null)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....
void nextAsync(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously retrieves the next #GSocketAddress from enumerator and then calls callback, which must call [gio.socket_address_enumerator.SocketAddressEnumerator.nextFinish] to get the result.
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 ...
Constructors
this(void * ptr, Flag!"Take" take)