Basics
Guides
API Reference
Basics
Guides
API Reference
[139:14] static extends: object
Generated metadata helpers for UnixCredentialsMessage class surfaces.
properties ()
Returns property metadata for
UnixCredentialsMessage.
A list.[25:7] extends: object
This [class@Gio.SocketControlMessage] contains a [class@Gio.Credentials]
instance. It may be sent using [method@Gio.Socket.send_message] and received
using [method@Gio.Socket.receive_message] over UNIX sockets (ie: sockets in
the G_SOCKET_FAMILY_UNIX family). For an easier way to send and receive
credentials over stream-oriented UNIX sockets, see
[method@Gio.UnixConnection.send_credentials] and
[method@Gio.UnixConnection.receive_credentials]. To receive credentials of a
foreign process connected to a socket, use
[method@Gio.Socket.get_credentials]. Since GLib 2.72,
GUnixCredentialMessage is available on all platforms. It requires
underlying system support (such as Windows 10 with AF_UNIX) at run time.
Before GLib 2.72, <gio/gunixcredentialsmessage.h> belonged to the
UNIX-specific GIO interfaces, thus you had to use the gio-unix-2.0.pc
pkg-config file when using it. This is no longer necessary since GLib 2.72.
UnixCredentialsMessage (credentials = null)
Creates a new #GUnixCredentialsMessage with credentials matching the current processes.
credentials is A #GCredentials object..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.asSocketControlMessage ()
Wraps this handle as
SocketControlMessage.
A SocketControlMessage object.get_credentials ()
Gets the credentials stored in @message.

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