GObject.Object
Gio.SocketAddressEnumerator
Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GSocketAddressEnumerator |
Class : | SocketAddressEnumerator |
Subclasses: | Gio.ProxyAddressEnumerator |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
parent_instance : GObject.Object
read only
|
Gio.SocketAddressEnumerator |
Method / Constructor | Defined By | |
---|---|---|
new Gio.SocketAddressEnumerator
(Object properties)
Create a new Gio.SocketAddressEnumerator
Create a new Gio.SocketAddressEnumerator
|
||
next
(Cancellable cancellable)
:
Gio.SocketAddress
Retrieves the next GSocketAddress from enumerator.
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. error (in which case *error will be set) or if there are no more addresses.
|
Gio.SocketAddressEnumerator | |
Asynchronously retrieves the next GSocketAddress from enumerator
and then calls callback, which must call g_socket_address_enumerator_next_finish() to get the result.
Asynchronously retrieves the next GSocketAddress from enumerator
and then calls callback, which must call g_socket_address_enumerator_next_finish() to get the result.
|
Gio.SocketAddressEnumerator | |
next_finish
(AsyncResult result)
:
Gio.SocketAddress
Retrieves the result of a completed call to
g_socket_address_enumerator_next_async().
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. error (in which case *error will be set) or if there are no more addresses.
|
Gio.SocketAddressEnumerator |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gio.SocketConnectable
Method |
enumerate
()
:
Gio.SocketAddressEnumerator
Creates a GSocketAddressEnumerator for connectable.
|
Gio.SocketConnectable
Method |
proxy_enumerate
()
:
Gio.SocketAddressEnumerator
Creates a GSocketAddressEnumerator for connectable that will
return GProxyAddresses for addresses that you must connect to via a proxy. |