Gio.UnixFDMessage

const Gio = imports.gi.Gio;

let unixFDMessage = new Gio.UnixFDMessage({
    fd_list: value,
});
  

This Gio.SocketControlMessage contains a Gio.UnixFDList. 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 %G_SOCKET_ADDRESS_UNIX family). The file descriptors are copied between processes by the kernel.

For an easier way to send and receive file descriptors over stream-oriented UNIX sockets, see Gio.UnixConnection.prototype.send_fd and Gio.UnixConnection.prototype.receive_fd.

Note that `<gio/gunixfdmessage.h>` belongs to the UNIX-specific GIO interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config file when using it.

Hierarchy

  • GObject.Object
    • Gio.SocketControlMessage
      • Gio.UnixFDMessage