Package org.gnome.gio

Class SocketAddressEnumerator

java.lang.Object
All Implemented Interfaces:
Proxy
Direct Known Subclasses:
ProxyAddressEnumerator, SocketAddressEnumerator.SocketAddressEnumeratorImpl

@Generated("io.github.jwharm.JavaGI") public abstract class SocketAddressEnumerator extends GObject
GSocketAddressEnumerator is an enumerator type for SocketAddress instances. It is returned by enumeration functions such as SocketConnectable.enumerate(), which returns a GSocketAddressEnumerator to list each SocketAddress which could be used to connect to that SocketConnectable.

Enumeration is typically a blocking operation, so the asynchronous methods nextAsync(org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback) and nextFinish(org.gnome.gio.AsyncResult) should be used where possible.

Each GSocketAddressEnumerator can only be enumerated once. Once next(org.gnome.gio.Cancellable) has returned NULL, further enumeration with that GSocketAddressEnumerator is not possible, and it can be unreffed.