Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: object
An IPv4 or IPv6 socket address. That is, the combination of a
[class@Gio.InetAddress] and a port number. In UNIX terms,
GInetSocketAddress corresponds to a struct sockaddr_in or struct sockaddr_in6.
InetSocketAddress (address = null, port = null)
Creates a new #GInetSocketAddress for @address and @port. If @address is an IPv6 address, it can also contain a scope ID (separated from the address by a
%). Note that currently this behavior is platform specific. This may change in a future release.
address is the string form of an IP address.port is a port number.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.asSocketAddress ()
Wraps this handle as
SocketAddress.
A SocketAddress object.asSocketConnectable ()
Wraps this handle as
SocketConnectable.
A SocketConnectable object.get_address ()
Gets @address's #GInetAddress.
[134:14] static extends: object
Generated metadata helpers for InetSocketAddress class surfaces.
properties ()
Returns property metadata for
InetSocketAddress.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.