Basics
Guides
API Reference
Basics
Guides
API Reference
[188:14] static extends: object
Generated metadata helpers for InetSocketAddress class surfaces.
properties ()
Returns property metadata for
InetSocketAddress.
A list.[165:14] static extends: object
Alternate constructors for GInetSocketAddress. Usage:
GInetSocketAddressCtors.<name>(...). The primary constructor lives
directly on GInetSocketAddress.
newFromString (string address, int port)
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.A new GInetSocketAddress.[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.
GInetSocketAddress (address = null, port = null)
Creates a new #GInetSocketAddress for @address and @port.
address is a #GInetAddress.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
GSocketAddress.
A GSocketAddress object.asSocketConnectable ()
Wraps this handle as
GSocketConnectable.
A GSocketConnectable object.get_address ()
Gets @address's #GInetAddress.
the #GInetAddress for @address, which must be g_object_ref()'d if it will be stored.get_flowinfo ()
Gets the
sin6_flowinfofield from @address, which must be an IPv6 address. If not overridden this value will be inherited from [property@Gio.InetSocketAddress:address].
the flowinfo field.get_port ()
Gets @address's port.
the port for @address.get_scope_id ()
Gets the
sin6_scope_idfield from @address, which must be an IPv6 address. If not overridden this value will be inherited from [property@Gio.InetSocketAddress:address].
the scope id field.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.