Basics
Guides
API Reference
Basics
Guides
API Reference
[133:14] static extends: object
Generated metadata helpers for NetworkAddress class surfaces.
properties ()
Returns property metadata for
NetworkAddress.
A list.[17:7] extends: object
GNetworkAddress provides an easy way to resolve a hostname and then attempt
to connect to that host, handling the possibility of multiple IP addresses
and multiple address families. The enumeration results of resolved addresses
may be cached as long as this object is kept alive which may have
unexpected results if alive for too long. See [iface@Gio.SocketConnectable]
for an example of using the connectable interface.
NetworkAddress (Handle = null)
Creates a new
NetworkAddressby 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.asObject ()
Wraps this handle as
Object.
A Object object.asSocketConnectable ()
Wraps this handle as
SocketConnectable.
A SocketConnectable object.get_hostname ()
Gets @addr's hostname. This might be either UTF-8 or ASCII-encoded, depending on what @addr was created with.
get_scheme ()
Gets @addr's scheme

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