Gio.UnixCredentialsMessage

const Gio = imports.gi.Gio;

let unixCredentialsMessage = new Gio.UnixCredentialsMessage({
    credentials: value,
});
  

This Gio.SocketControlMessage contains a Gio.Credentials instance. It may be sent using Gio.Socket.prototype.send_message and received using Gio.Socket.prototype.receive_message over UNIX sockets (ie: sockets in the Gio.SocketFamily.unix family).

For an easier way to send and receive credentials over stream-oriented UNIX sockets, see Gio.UnixConnection.prototype.send_credentials and Gio.UnixConnection.prototype.receive_credentials. To receive credentials of a foreign process connected to a socket, use Gio.Socket.prototype.get_credentials.

Since 2.26

Hierarchy

  • GObject.Object
    • Gio.SocketControlMessage
      • Gio.UnixCredentialsMessage