Basics
Guides
API Reference
Basics
Guides
API Reference
[32:7] extends: object
Objects that describe one or more potential socket endpoints implement
GSocketConnectable. Callers can then use
[method@Gio.SocketConnectable.enumerate] to get a
[class@Gio.SocketAddressEnumerator] to try out each socket address in turn
until one succeeds, as shown in the sample code below. ```c MyConnectionType
SocketConnectable (Handle = null)
Creates a new
SocketConnectableby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.enumerate ()
Creates a #GSocketAddressEnumerator for @connectable.
proxy_enumerate ()
Creates a #GSocketAddressEnumerator for @connectable that will return a #GProxyAddress for each of its addresses that you must connect to via a proxy. If @connectable does not implement g_socket_connectable_proxy_enumerate(), this will fall back to calling g_socket_connectable_enumerate().
to_string ()
Format a #GSocketConnectable as a string. This is a human-readable format for use in debugging output, and is not a stable serialization format. It is not suitable for use in user interfaces as it exposes too much information for a user. If the #GSocketConnectable implementation does not support string formatting, the implementation’s type name will be returned as a fallback.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.