W Wrapl, The Programming Language

Libraries:Gtk:Gio:GSocketAddressEnumerator

Types

T

Inherits from:

Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



Methods

:Next(self @ T, cancellable @ Gtk.Gio.GCancellable.T, error @ Std.Object.T) : Gtk.Gio.GSocketAddress.T

Retrieves the next Gtk.Gio.GSocketAddress.T from enumerator. Note that this may block for some amount of time. (Eg, a Gtk.Gio.GNetworkAddress.T may need to do a DNS lookup before it can return an address.) Use NextAsync if you need to avoid blocking.

If enumerator is expected to yield addresses, but for some reason is unable to (eg, because of a DNS error), then the first call to Next will return an appropriate error in *error. However, if the first call to Next succeeds, then any further internal errors (other than cancellable being triggered) will be ignored.

enumerator a T
cancellable optional Gtk.Gio.GCancellable.T object, NULL to ignore. [allow-none]
error a Gtk.Glib.GError.T.
Returns a Gtk.Gio.GSocketAddress.T (owned by the caller), or NULL on error (in which case *error will be set) or if there are no more addresses. [transfer full]


:NextAsync(self @ T, cancellable @ Gtk.Gio.GCancellable.T, callback @ Std.Function.T, user_data) : Std.Object.T

Asynchronously retrieves the next Gtk.Gio.GSocketAddress.T from enumerator and then calls callback, which must call NextFinish to get the result.

enumerator a T
cancellable optional Gtk.Gio.GCancellable.T object, NULL to ignore. [allow-none]
callback a Gtk.Gio.GAsyncReadyCallback to call when the request is satisfied. [scope async]
user_data the data to pass to callback function. [closure]


:NextFinish(self @ T, result @ Gtk.Gio.GAsyncResult.T, error @ Std.Object.T) : Gtk.Gio.GSocketAddress.T

Retrieves the result of a completed call to NextAsync. See Next for more information about error handling.

enumerator a T
result a Gtk.Gio.GAsyncResult.T
error a Gtk.Glib.GError.T
Returns a Gtk.Gio.GSocketAddress.T (owned by the caller), or NULL on error (in which case *error will be set) or if there are no more addresses. [transfer full]