Gio.UnixSocketAddress

const Gio = imports.gi.Gio;

let unixSocketAddress = new Gio.UnixSocketAddress({
    abstract: value,
    address_type: value,
    path: value,
    path_as_array: value,
});
  

Support for UNIX-domain (also known as local) sockets.

UNIX domain sockets are generally visible in the filesystem. However, some systems support abstract socket names which are not visible in the filesystem and not affected by the filesystem permissions, visibility, etc. Currently this is only supported under Linux. If you attempt to use abstract sockets on other systems, function calls may return Gio.IOErrorEnum.not_supported errors. You can use Gio.UnixSocketAddress.abstract_names_supported to see if abstract names are supported.

Note that `<gio/gunixsocketaddress.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.SocketAddress
      • Gio.UnixSocketAddress