Package ch.bailu.gtk.gio
Klasse SocketAddressEnumerator
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.SocketAddressEnumerator
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
ProxyAddressEnumerator
`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.
[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.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
next
(Cancellable cancellable) Retrieves the next #GSocketAddress from @enumerator.void
nextAsync
(Cancellable cancellable, SocketAddressEnumerator.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously retrieves the next #GSocketAddress from @enumerator
and then calls @callback, which must call
g_socket_address_enumerator_next_finish() to get the result.nextFinish
(AsyncResult result) Retrieves the result of a completed call to
g_socket_address_enumerator_next_async().Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
SocketAddressEnumerator
-
-
Methodendetails
-
getClassHandler
-
next
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.
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
g_socket_address_enumerator_next() will return an appropriate error
in `*error`. However, if the first call to
g_socket_address_enumerator_next() succeeds, then any further
internal errors (other than @cancellable being triggered) will be
ignored.- Parameter:
cancellable
- optional #GCancellable object, %NULL to ignore.- Gibt zurück:
- a #GSocketAddress (owned by the caller), or %NULL on error (in which case `*error` will be set) or if there are no more addresses.
- Löst aus:
AllocationError
-
nextAsync
public void nextAsync(@Nullable Cancellable cancellable, SocketAddressEnumerator.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously retrieves the next #GSocketAddress from @enumerator
and then calls @callback, which must call
g_socket_address_enumerator_next_finish() to get the result.
It is an error to call this multiple times before the previous callback has finished.- Parameter:
cancellable
- optional #GCancellable object, %NULL to ignore.callback
- a #GAsyncReadyCallback to call when the request is satisfieduser_data
- the data to pass to callback function
-
nextFinish
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.- Parameter:
result
- a #GAsyncResult- Gibt zurück:
- a #GSocketAddress (owned by the caller), or %NULL on error (in which case `*error` will be set) or if there are no more addresses.
- Löst aus:
AllocationError
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-