SocketAddressEnumerator


Object Hierarchy:

Object hierarchy for SocketAddressEnumerator

Description:

[ CCode ( type_id = "g_socket_address_enumerator_get_type ()" ) ]
public abstract class SocketAddressEnumerator : Object

`GSocketAddressEnumerator` is an enumerator type for [class@Gio.

SocketAddress] instances. It is returned by enumeration functions such as [method@Gio.SocketConnectable.enumerate], which returns a `GSocketAddressEnumerator` to list each [class@Gio.SocketAddress] which could be used to connect to that [iface@Gio.SocketConnectable].

Enumeration is typically a blocking operation, so the asynchronous methods [method@Gio.SocketAddressEnumerator.next_async] and [ method@Gio.SocketAddressEnumerator.next_finish] should be used where possible.

Each `GSocketAddressEnumerator` can only be enumerated once. Once [method@Gio.SocketAddressEnumerator.next] has returned `NULL`, further enumeration with that `GSocketAddressEnumerator` is not possible, and it can be unreffed.

All known sub-classes:

Namespace: GLib
Package: gio-2.0

Content:

Creation methods:

Methods:

Inherited Members: