It derives from
<GSocketControlMessage>.
This <GSocketControlMessage> contains
a <GCredentials> instance. It may be sent
using Gio.Socket.send_message and received using
Gio.Socket.receive_message over UNIX sockets (ie: sockets in the
unix family).
For an easier way to send and receive credentials over stream-oriented
UNIX sockets, see unix-connection:send-credentials? and
unix-connection:receive-credentials. To receive
credentials of a foreign process connected to a socket, use
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.
parent-instanceprivThe credentials stored in the message.
Its value is a <GCredentials>, or #f.
It can only be set when the object is made, with #:credentials.
Gets the credentials stored in self.
Passed: a
<GUnixCredentialsMessage>.
Returned: a <GCredentials>.
A <GCredentials> instance. Do not free, it is
owned by self.
Checks if passing <GCredentials> on a
<GSocket> is supported on this platform.
Returned: a boolean.
#t if supported, #f otherwise
Creates a new
<GUnixCredentialsMessage> with
credentials matching the current processes.
Returned: a <GSocketControlMessage>.
Creates a new
<GUnixCredentialsMessage> holding
credentials.
Passed: a <GCredentials>.
A <GCredentials> object.
Returned: a <GSocketControlMessage>.